Question #172448 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/172448
Status: Open => Answered
RaiMan proposed the following answer:
--- I understand
- you want to start the app 99 times
- if the app is running and started again, it shows a message
- this message has to be clicked "yes", to confirm the app to run more than once
--- If this is true, the code should look like this
# app should not be running at this point
openApp("C:\Program Files\test\test.exe")
wait(1) # set it sufficient for app to be fully started
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) # set it sufficient for app to be fully started
--
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