[request] SikuliX should be able to detect keypresses and mouse usage globally
Bug #1565417 reported by
RaiMan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
In Progress
|
Medium
|
RaiMan |
Bug Description
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).
Changed in sikuli: | |
milestone: | 2.0.0 → 2.1.0 |
To post a comment you must log in.
Since Java as the underlying system for SikuliX does not offer solutions for that, it is not supported currently (if we talk about SikuliX sitting in the background observing for keypresses that are targeted to running apps or the system).
Limited solutions are possible with SikuliX's hotkey feature.
To add a library supporting that feature is with low priority on the list for version 2 /github. com/kwhat/ jnativehook)
(hot candidate: https:/