sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #12611
Re: [Question #206119]: Problem with Multi-Monitor-Switching (Windows 7)
Question #206119 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/206119
Status: Open => Answered
RaiMan proposed the following answer:
--- Even though we have to quit sikuli and re-open the test whenever we change the number of the screen.
This currently is a feature ;-)
Monitor configuration is only checked once at IDE startup or when the script starts from command line.
--- switching SCREEN
Iguess, this is your problem: since SCREEN is a global variable, you have to tell Python in def()'s, that it is global, if you have it on left side - otherwise it is a local variable and I think, then the effect does not happen (global SCREEN remains unchanged).
so try:
def runModule():
global SCREEN
# your code ....
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.