sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #08488
Re: [Question #186411]: wait 1 or 2 or 3 and loop it
Question #186411 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/186411
Status: Solved => Open
Dikyy is still having a problem:
ok, now i have a new problem
when i use while True: it is not saves .png and i need to shift+alt+c to push and after that there is no .png, i figure when script is running without break command it's saving .png after timer is out (20 sec) and if break is the .png is saved just when app is stopped. how to make instant save when it saw the image?! and repeat it infinitaly
with script
import shutil
reg1 = Region(234,415,104,52)
reg2 = Region(974,342,62,31)
reg3 = Region(973,704,64,32)
while True:
mImg1 = reg1.exists("0000-1.png",0)
mImg2 = reg2.exists("DUDE-1.png",0)
mImg3 = reg3.exists("1328027006705.png",0)
mImg4 = reg1.exists("1328031443547.png",0)
if mImg1 or mImg2 or mImg3 or mImg4:
img = capture(SCREEN)
shutil.move(img,'c:/test/')
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.