sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #26798
Re: [Question #251118]: Launch script without splashscreen
Question #251118 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/251118
Status: Open => Answered
RaiMan proposed the following answer:
Sorry, currently no way. But I will change that in 1.1.0-Beta3+
If you run a series of scripts from command line, you might instead use
a main script and put all scripts in the same folder.
# main script:
import script1
import script2
...
each script scriptN.sikuli now needs
from sikuli import *
at the beginning of the script.
BE AWARE:
this only works when running from command line and in the first run in the IDE after startup.
The trick:
at Python import, the script content is run once to get the defined names, but never again.
hence an imported script will do what it would do, when run from command line.
caveat: different images in the scripts must all have different names,
since images are searched in all imported scripts in the sequence of
import - first wins
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.