← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #264483]: 1.0.1 how to run sikuli script from command line

 

Question #264483 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264483

    Status: Solved => Open

eduardobedoya is still having a problem:
Hi Rainman

I tried this and it work...

def openlastone(event):
    runScript("C:\Sikuli\scripts\lastone")
Env.addHotkey(Key.F1, KeyModifier.CTRL+KeyModifier.SHIFT+KeyModifier.ALT, openlastone)

while True:
    wait(1)


but what if I want to keep adding more scripts (each one with its own shortcut) inside this Main.script
I have try this, but it doesn't work.


def openlastone(event):
    runScript("C:\Sikuli\scripts\lastone")
Env.addHotkey(Key.F1, KeyModifier.CTRL+KeyModifier.SHIFT+KeyModifier.ALT, openlastone)

def openquestionmark(event):
    runScript("C:\Sikuli\scripts\questionmark")
Env.addHotkey(Key.F2, KeyModifier.CTRL+KeyModifier.SHIFT+KeyModifier.ALT, openquestionmark)

while True:
    wait(1)


What Im doing wrong?
THanks Advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.