← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #664446]: Similar Function App.waitVanish('someapp')

 

Question #664446 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/664446

    Status: Answered => Open

yop is still having a problem:
Hello,

After some Holidays and few tests. For information the solution for me is the following script :
myApp=App('PathtoMyApp')
myApp.open()
wait(1)
for n in range (30):    #time out at 30s
       if myApp.window() :      
             wait(1)
       else : break
....
....

Whit this script during the loop of 30s, if i kill by myself the
application " myApp", immediatly the loop stops to keep  the script.

If i change "myApp.window()" by "myApp.isRunning()"
--> Its works if the application is stoped by Sikuli Script like "myApp.close()"
--> It doesnt work if i kill the application by myself
...i don't know if my explainations are so clear :-)

Thanks
Yopcitron

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.