← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #194681]: Use strings to import and run functions from other Sikuli scripts

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
Does the approach from comment #15 principally work on your Windows
environment?

some quick test like this:

SCREEN = Screen(1)
dict = globals()
dict['SCREEN'] = SCREEN
dict['SCREEN']._exposeAllMethods(__name__)
hover(getCenter())

should move the mouse to the center of Screen(1)

BTW: this should report your screens you have and there relative
position as recognized by Sikuli:

for i in range(getNumberScreens()):
    print Screen(i)

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