sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #19216
Re: [Question #232183]: [How To] set variable value from OCR numerics
Question #232183 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/232183
Status: Solved => Open
Phillip Kelly is still having a problem:
RaiMan I am looking for a suggestion from you regarding logic control.
In order to make use of global variables during logic operations it is necessary to perform the logic outside of a function.
At the beginning of my logic I get an input from the user to control the
number of hands to be played
hands_to_play = input("hands To Play)
For hands_to_play in xrange(0, 9999):
#/ then begin a series of logic operations
if #/some logic :
#/perform operations
hands_to_play = hands_to_play - 1
if hands_to_play <= 0
exit
Is this a suitable method of program control to include all of the logic
operations inside the for loop to enable the use of global variables ?
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.