sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #35918
Re: [Question #277167]: import can not resolve Key constant even i already "from sikuli import *"
Question #277167 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/277167
Status: Open => Answered
RaiMan proposed the following answer:
the
from sikuli import *
is needed in every script, that is IMPORTED.
The main script (the one you run) already has this internally
automatically.
see:
http://sikulix-2014.readthedocs.org/en/latest/scripting.html#importing-other-sikuli-scripts-reuse-code-and-images
this should work:
#rooterset.sikuli
from sikuli import *
def openRooterSetting():
type('d',Key.WIN)
#rooterrun.sikuli
import rooterset
rooterset.openRooterSetting()
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.