networkthis
Programmer
I'm trying to create a timeout after each keypress(that can't be seen) - but if it is interrupted by another keypress I need it to cancel the timeout.
I know that you can do this:
- wait window "" timeout .5 and not see the wait window
- wait clear - clears the screen
- that pressing a key cancels the timeout
- and that pressing a key on the wait window doesn't immediately give me a lastkey() value in the keypress event
- that assigning a variable to the wait window like this:
wait window to myVar "" timeout .5
- and then later calling myVar that I can get the value of the key that closed the window
This seems so simple, but the more I try this the more confused I become!
I know that you can do this:
- wait window "" timeout .5 and not see the wait window
- wait clear - clears the screen
- that pressing a key cancels the timeout
- and that pressing a key on the wait window doesn't immediately give me a lastkey() value in the keypress event
- that assigning a variable to the wait window like this:
wait window to myVar "" timeout .5
- and then later calling myVar that I can get the value of the key that closed the window
This seems so simple, but the more I try this the more confused I become!