← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #691935]: Are mouse and keyboard actions thread safe?

 

Question #691935 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/691935

    Status: Open => Answered

RaiMan proposed the following answer:
The general statement is still valid and will always be:
... concurrent usage of mouse and keyboard: this is definitely not coordinated by Sikuli among threads.

There is only one exception (but this is not an official feature and not documented):
mouse actions like click are internally guarded, so that the underlying different Java AWT Robot actions (mouseDown, mouseUp, mouseMove and delay), that form such a top level action can be performed and completed, without interaction from other threads.
This was necessary, to allow mouse actions in handlers of observers running in background.
This is not implemented for any other SikuliX feature.

So it is your responsibility, to coordinate the usage of the top level
mouse and keyboard actions including clipboard/paste yourself.

BTW: what is your general intention or your use case (... use sikuli
mouse and keyboard actions from many concurrent threads)?

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