[jawsscripts] Re: Input Box

  • From: Jackie McBride <abletec@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Wed, 4 Jun 2014 12:20:26 -0700

Dale, first, your code is a bit backward, & 2nd, as Travis points out,
you're not saving the result to a variable. Here's how the code should
look. Can u tell me why?

Script save ()

var
string sName

let sName = "" ;initializes variable to empty string
let sName= InputBox ("name of book", "What is the name of the book?", sName)
delay (3)
TypeString (sName)

EndScript


On 6/4/14, Travis Roth <travis@xxxxxxxxxxxxxx> wrote:
> You are not saving the result of inputbox to a variable.
>
>
> -----Original Message-----
> From: jawsscripts-bounce@xxxxxxxxxxxxx
> [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Dale Alton
> Sent: Wednesday, June 04, 2014 1:13 PM
> To: jawsscripts@xxxxxxxxxxxxx
> Subject: [jawsscripts] Input Box
>
> Hello all,
>
>
> I am a fairly inexperienced scriptor and am having difficulties with the
> InputBox function.  I thought I had this down but it isn't working for me.
> What have I done incorrectly?
>
> Script save ()
>
> var
>
> string sName
>
> InputBox ("name of book", "What is the name of the book?", "")
>
> let sName = ""
>
> delay (3)
>
> TypeString (sName)
>
>
>
> EndScript
>
> Thank you,
>
> Denver Dale
>
>
>
> __________�
>
> View the list's information and change your settings at
> http://www.freelists.org/list/jawsscripts
>
>
> __________�
>
> View the list's information and change your settings at
> http://www.freelists.org/list/jawsscripts
>
>


-- 
Jackie McBride
Author of the Upcoming Book
“Beyond Baffled: the Technophobe’s Guide to Creating a Website”
www.brighter-vision.com Where Visionaries & Technology Unite
Jaws Scripting training
www.screenreaderscripting.com
__________�

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: