← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #674465]: App.open() long resolve time

 

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.