[jawsscripts] Re: Schedule Function
- From: "Sean Randall" <seanr@xxxxxxxxxxxxxxx>
- To: <jawsscripts@xxxxxxxxxxxxx>
- Date: Wed, 15 Apr 2009 22:38:34 +0100
David Farough has already commented expertly on this one.
Just allow me to add that capturing of the ctrl key is nowhere near as easy
as simply defining a script to call it. As far as I understand things JAWS
doesn't let you call scripts with individual modifiers unless they're
pressed in conjunction with something else. With all this said, does
IsKeyWaiting return true if you press a modifier? Does KeyPressedEvent get
called?
Sean.
-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of E.J. Zufelt
Sent: Wednesday, April 15, 2009 8:46 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Schedule Function
Good afternoon Dean,
I did not look through your code. However, it sounds to me like you
need a global variable that can be set to On or Off so that your
function can know if it should stop or not.
1. Create a global variable to store a binary state of on or off
2. When the reading function starts set the variable to on
3. When the control key is pressed set the variable to off
4. In your reading function check the state of the global variable
before reading the next line.
HTH,
Everett
__________
Visit and contribute to The JAWS Script Repository http://jawsscripts.com
View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts
Other related posts: