← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #449474]: the functions exists()/click()... freezes within a thread

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
You either have to extend class Region and implement your locking inside
by overwriting the methods with wrappers

BTW: 
in such cases as yours you should run completely "dotted": 
... instead off
click(something)
... use 
screen = Region(Screen(0)) # once at the beginning
... and then
screen.click(something)

The other possibility is to make the wrapper def()s as

def click(what, where = null, ...):
    where.click(what) 

... in any case, there is no easy solution - you have to change/rewrite
a lot.

... and (but does not help you now ... ;-) version 2 will allow the
synched usage of the devices (screen, keyboard and mouse).

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