New question #172506 on Sikuli:
https://answers.launchpad.net/sikuli/+question/172506
Hi, there are two questions i still cant solve
please advise me some suggest.
1.how to use a count through sikuli
add 1 automatically when app to be fully started everytime
and out file(c:\count.txt)
2. If I want to press "Esc" to stop script, what function can i use?
=======================================
CODE:
def addOne(a):
a +=1
return a
count = 0
while openApp("C:\Program Files\test\test.exe"):
count = addOne(count)
out = file("c:\\count.txt","w")
openApp("C:\Program Files\test\test.exe")
wait(1)
for i in range(98):
openApp("C:\Program Files\test\test.exe")
if exists( img [Warning Window: Program Already Running] , 10) :
type(Key.ENTER) #or click( img [Yes] )
wait(1)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp