sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #35899
Re: [Question #277073]: How to prevent user input or get the name of the active window
Question #277073 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/277073
Status: Open => Answered
RaiMan proposed the following answer:
What you want cannot be achieved with the current implementation of SikuliX:
- mouse and keyboard usage cannot be blocked by SikuliX
- a click done by the user (or even by SikuliX) cannot be detected nor verified
- same goes for key presses
- it is not a feature, to check, wether a specific window still has focus
The only possibility currently is, to detect mouse moves, that are not done by SikuliX (internally it is simply checked, wether the mouse is still, where it should be during the run of a script).
But this part is experimental and not yet documented.
To get an impression about the possibilities:
http://nightly.sikuli.de/docs/index.html
class Mouse
... or you might look into the code
https://github.com/RaiMan/SikuliX-2014
... but even with this feature, it is a hard job, to implement what you
want.
Currently the only realistic choice, is to let the script crash and tell
the user, that he is guilty ;-)
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.