← Back to team overview

sikuli-driver team mailing list archive

[Question #269517]: Running Command Line With Imported Scripts

 

New question #269517 on Sikuli:
https://answers.launchpad.net/sikuli/+question/269517

Hello,
I have a question about running sikuli scripts using console (Windows 8.1)

For example:
I created two scripts:
file name. script(a).sikuli
def ClickEvent():
       click (image0)


file name script(b).sikuli
#import script(a).sikuli
RunTest = True
if RunTest == True:
    ClickEvent()


lets say everything works well using Sikuli IDE. Firstly, I run script(a).sikuli, then script(b).sikuli and my button is clicked. 

But now I would like to run the same in using bat file.
I created file with command:
C:\Users\test\Desktop\SIKULI_IDE\runIDE.cmd -r C:\Users\test\Desktop\mypro\ComponentGUI.sikuli
and get error is not defined. 
How can I run in such situation using command line?

Thank you!





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