sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #40514
[Question #403382]: [error] App.close
New question #403382 on Sikuli:
https://answers.launchpad.net/sikuli/+question/403382
My code has been and is working fine on many VM's. But One is giving me this error "[error] App.close [-1:Timer ()] Timer Runner did not work"
Please help
here is my code.
for n in range(1):
reg = Region(491,59,1140,935)
if reg.exists(Pattern("1469321512445-1.png").similar(0.50), 0) or reg.exists(Pattern("1470254195609-1.png").similar(0.50), 0) or reg.exists(Pattern("1470143332576-1.png").similar(0.50), 0):
import os
cmdPath = os.getenv("comspec")
title = "Timer Runner"
cmd = 'start "%s" %s'%(title, cmdPath)
os.popen(cmd); wait(.5)
App.focus("castro_ig_pclean - Notepad")
click(Pattern("1469305690339-1.png").similar(0.90).targetOffset(-70,-9))
type(Key.ENTER)
type("v", KeyModifier.CTRL)
type(Key.ENTER)
type("s", KeyModifier.CTRL)
os.system("C:\\castro_ig\\bats\\msaccess_post_private.bat")
App.close("Timer Runner")
else:
import os
cmdPath = os.getenv("comspec")
title = "Timer Runner"
cmd = 'start "%s" %s'%(title, cmdPath)
os.popen(cmd); wait(.5)
reg2 = Region(1317,146,184,52)
click(Pattern("1469222076906-2.png").targetOffset(-647,497))
wait(3)
reg3 = Region(506,205,1104,759)
if reg3.exists(Pattern("1477096533761-1.png").exact()):
wait(3.0)
click(Pattern("1477096533761-1.png").exact())
type("0", KeyModifier.CTRL)
os.system("C:\\castro_ig\\bats\\msaccess_post_like.bat")
App.close("Timer Runner")
else:
App.close("Timer Runner")
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.