sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #05825
[Question #173070]: about Flow Control
New question #173070 on Sikuli:
https://answers.launchpad.net/sikuli/+question/173070
I encounter a problem about flow control
please at look my code;
My situation : A>1>2>3>A or A>1>2>1> X
Is there any way i can change as below :
A>1>2>1>2>1>2>1>... (Reason by analogy)... >3>A
=============================================
for i in range(n):
if exists("error.png"):
exit()
openApp("test.exe")
if exists( "progarm_already_running.png", 10): ----- A
click ("Yes")
.......
.......
.......
if exists("device in use,pls try again.png",10): --- 1 ----- B
# If device.png was displayed ,Indicated that limit test is starting
click("OK") --- 2 ----- B
# for keeping limit test , click OK of the device.png
click ("Play") --- 3 ----- B
#play a sound and back for-loop (A)
=============================================
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.