Question #674465 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/674465
Status: Open => Answered
RaiMan proposed the following answer:
I just tested on Windows 10 with Java 11 on SikuliX 1.1.4:
start = time.time()
paintpath = r'c:\WINDOWS\system32\mspaint.exe'
paint = App(paintpath) # will not open the app, but detect if already open
print paint
paint.open() # this opens the app or uses already open app
print paint
print "Duration:", time.time() - start
you should read:
https://sikulix-2014.readthedocs.io/en/latest/appclass.html
I guess you are running the script from commandline.
If starting the app as a first action, you have to take into account the
start-up time of about 3 - 5 seconds.
Look here for options how to run scripts from a masterscript, which would avoid
the startup for the second and all other scripts.
https://sikulix-2014.readthedocs.io/en/latest/scripting.html#running-scripts-and-snippets-from-within-other-scripts-and-run-scripts-one-after-the-other
There are some other options how to organize your stuff, so that you
avoid the startup delay.
--
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