Question #688817 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/688817
Status: Open => Answered
RaiMan proposed the following answer:
this worked for me:
appFolder = r"C:\Program Files\Notepad++"
appName = "notepad++.exe"
np = App(appFolder + "\\" + appName)
if np.isRunning():
popup("running")
exit()
np.open()
popup("wait for notepad++")
np = App.getApps(appName)[0]
popup("please close app\nwait until notepad++ terminated")
print App.getApps(appName) # should be an empty list
--
You received this question notification because your team Sikuli Drivers
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