← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #264188]: Have background observation interrupt/pause main thread

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
ok, no problem. If we have some RFW means, we do not need any hacks.

It would help, if you pack some scripts, command files and other stuff
together in a zip and send it silently to my mail at
https://launchpad.net/~raimund-hocke (top left), so I can see how you
are working.

supposing you are using the latest nightly build (preferably that from
today), it would help to get the output of the following command.

java -dsikuli.Debug=3 -jar <path-to-your>sikulixapi.jar

any popups just click ok or cancel.

If you prefer (to not reveal too much private information) we can
communicate privately for the next steps.

The possible solution:
- I implement a function, that allows to tell the global Mouse handler to do something before the next mouse action
- you define a callback, that does the raise …. and tell this to Sikuli with some setMouseCallBack(handler) (to be implemented)
- if these two things are true (shouldRunCallBack and a callBack is give), the callback is called.
- this should work, since the handler now is called in the main thread context

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.