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

RaiMan proposed the following answer:
another script, that actively detects an already opened app

start = time.time()
paintpath = r'c:\WINDOWS\system32\mspaint.exe'
paint = App(paintpath)
if not paint.isRunning(0): 
    print "not running"
    paint.open()
else:    
    print "already running"
print paint
print "Duration:", time.time() - start

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

Reply via email to