sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #11840
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:
yes, I guess, that as with
from sikuli import *
you have to put the sequence just after this statement in every sub.
You might use
Settings.myScreen = 1 # or 2
to gloabally set the Screen and in the subs use
SCREEN = Screen(Settings.myScreen)
dict = globals()
dict['SCREEN'] = SCREEN
dict['SCREEN']._exposeAllMethods(__name__)
To select the currently to be use Screen.
Settings is a globally available static Sikuli class.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.