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

  • From: Saylien Brown <saybro@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Fri, 01 Jun 2012 16:56:10 -0400

So this function allows me to press any key to 
break the While Loop? So just make sure to use == 
TRUE as part of the While statement?

At 04:37 PM 6/1/2012, you wrote:
>Just use it as a condition in the while loop, it returns true when a key is
>waiting.
>While(isKeyWaiting()==true && whatever else)
>...
>EndWhile
>
>
>-----Original Message-----
>From: jawsscripts-bounce@xxxxxxxxxxxxx
>[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Saylien Brown
>Sent: Friday, June 01, 2012 2:45 PM
>To: jawsscripts@xxxxxxxxxxxxx
>Subject: [jawsscripts] Re: Breaking a While Loop using Key Press Function?
>
>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
>
>
>__________�
>
>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: