sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #37019
Re: [Question #287177]: Breaking out of a Loop with keyboard Input not working!
Question #287177 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/287177
masuo proposed the following answer:
there are two defects in LoopClose().
(1)Now variable A is defined as a local variable.
Define variable A as global variable.
(2)Now variable A is not substituted.
Substitute 10 for variable A.
def LoopClose(event):
global A # <--- (1)
print('BREAK KEY ACTIVATED!')
A = 10 # <--- (2)
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.