[error] App.close

Asked by MJ

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")

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

Since it principally works (on other VM's), you have to check about differences in your environment, e.g.
- same SikuliX
- ...

You might use
Debug.on(3)

before getting to the critical area - might be this sheds some light on the problem.

Can you help with this problem?

Provide an answer of your own, or ask MJ for more information if necessary.

To post a message you must log in.