[jawsscripts] Re: Typing Into a Frame

  • From: Tom R <twr6444@xxxxxxxxx>
  • To: "jawsscripts@xxxxxxxxxxxxx" <jawsscripts@xxxxxxxxxxxxx>
  • Date: Mon, 6 Feb 2012 20:32:30 -0800 (PST)

Thanks Jackie.
Noted :)
I actually got it to work by changing TypeString(sAreaCode) to 
TypeFormattedString(sAreaCode)
 
Thanks for your help!
 
________________________________
 From: Jackie McBride <abletec@xxxxxxxxx>
To: jawsscripts@xxxxxxxxxxxxx 
Sent: Monday, February 6, 2012 8:52 PM
Subject: [jawsscripts] Re: Typing Into a Frame
  
Well, Tom, 1st, u need to be certain that where you're at actually
accepts characters, i.e., is in an edit field.

Next, U need to do something like:
JawsCursor()
RouteJawsToPc()
MoveToFrame("areacode")
etc. The reason for that is your jaws cursor could be anywhere, unable
to move to the frame, & u didn't test for success or failure. Remember
that MoveTo() functions return integers, e.g., 1 for true & 0 for
false, so:
if (MoveToFrame("areacode") then
typeString(sAreacode)
else
saystring("could not move to frame")
endif

Saystring() is no longer standard, & shouldn't be used for scripts
you'll distribute to others, but for debugging purposes, it's ok.

But I really think your problem may well be that you're not in an edit field.

On 2/6/12, Tom R <twr6444@xxxxxxxxx> wrote:
> Hi All,
>
> Newbie trying this again
>
> Using Jaws 12 Windows 7
>
> Trying to write to a Frame called AreaCode
> There is Global Variable definded as string GlobalTelephone set > "3037778966"
> Script follows
>
> Script PastePhone ()
> Var
> string sAreaCode,
> string sPhone
> SaveCursor()
> sAreacode=StringLeft (GlobalTelephone,3)
> sPhone=StringRight (GlobalTelephone,7)
> TypeString("AreaCode=")
> TypeString(sAreaCode)
> TypeString("Phone=")
> TypeString (sPhone)
>
> MoveToFrame("AreaCode")
> RoutePCTOJaws ()
>
> TypeString (sAreaCode)
>
> RestoreCursor()
> EndScript
>
> The TypeStrings prior to the MoveToFrame outputs the following:
> AreaCode03Phonew78966
> Which is correct
> Nothing is getting written to my frame named AreaCode
>
> Any help is greatly appreciated!
> __________�
>
> View the list's information and change your settings at
> //www.freelists.org/list/jawsscripts
>
>


-- 
Blame the computer--why not? It can't defend itself & occasionally
might even be the culprit
Jackie McBride
Ask Me Computer Questions at: www.pcinquirer.com
Jaws Scripting training materials: www.screenreaderscripting.com
homePage: www.abletec.serverheaven.net
__________�

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

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

Other related posts: