← Back to team overview

sikuli-driver team mailing list archive

[Question #289888]: Detect if key pressed?

 

New question #289888 on Sikuli:
https://answers.launchpad.net/sikuli/+question/289888

There's a lot of documentation on pressing keys.  I'd like to know how to detect when a user _presses_ a key so the script behavior can change.

As it stands: I have to stop the script.  Change some variables. Restart the script.

It would be great if I could: Start a script.  Hold a key.  Behavior of script changes on the fly because it detected I held down a certain key.

Is there a way to do this with Sikuli?  If not; perhaps detecting user-pressed key events would be great (something akin to observe or an actionListener for when a user presses a key).

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.