← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #688817]: Sikuli often sees App class as isRunning == True

 

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.