[jawsscripts] Re: Breaking a While Loop using Key Press Function?

  • From: Saylien Brown <saybro@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Fri, 01 Jun 2012 15:44:41 -0400

How would I use this isKeyWaiting () function in 
the proper syntax to break a While Loop? Can you 
give me an example code using the [Ctrl] key as an example?

At 02:38 PM 6/1/2012, you wrote:
>Try the isKeyWaiting() function.
>
>-----Original Message-----
>From: jawsscripts-bounce@xxxxxxxxxxxxx
>[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Saylien Brown
>Sent: Friday, June 01, 2012 12:27 PM
>To: jawsscripts@xxxxxxxxxxxxx
>Subject: [jawsscripts] Breaking a While Loop using Key Press Function?
>
>Hello,
>
>Ok, I'm getting into some pretty advanced scripting that involves the While
>Loop function.
>
>I generally build a fail safe into all of my while loops...
>
>VAR
>Int iX
>
>Let iX = 0
>
>While (This=True && iX <= 20)
>...Do the following...
>EndWhile
>
>But sometimes I wish to stop a While Loop manually, so I find myself always
>pressing the [Control] key, but of course nothing happens.
>
>Is there anyway to replace my fail safe ix = 20 with say KeyPress !=
>[Control]? Would give me more flexibility to kill a While Loop by simply
>pressing the Ctrl key.
>
>If this is possible, please share the coding, so I can model it for my own
>needs.
>
>Thanks for any help.
>
>__________o?=
>
>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

__________�

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

Other related posts: