The way the function was set up it just checked to see if any key was pressed. I just am used to using the control key. so David's suggestion should work. Dean ----- Original Message ----- From: "Sean Randall" <seanr@xxxxxxxxxxxxxxx> To: <jawsscripts@xxxxxxxxxxxxx> Sent: Wednesday, April 15, 2009 5:38 PM Subject: [jawsscripts] Re: Schedule Function | 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 | __________ 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