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.

_______________________________________________
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