← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #267553]: Run Sikuli Script using Windows Task Scheduler in Windows 7

 

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

    Status: Open => Answered

Eugene Maslov proposed the following answer:
Hi suba,
I use 1.1.0, but, as far as I recall, it works the same, just start file name is different.
Suppose there is the test script at c:\sikuli_tests\mytests.sikuli .

Call the scheduler
"Task scheduler library" item in the tree - call popup, click "create task"
"General" tab - fill name and description
"Triggers" tab - click New, fill the schedule
Actions tab - click New, 
   - "Program/script": type like "c:\Sikuli\runsikulix.cmd" (runscript.cmd for 1.0.1 )
   - "Add Arguments": type the parameters that you want, e.g. "-r c:\sikuli_tests\mytests.sikuli -d 1 -f d:\temp\sikuli.log --args -u inch -t test_002" (test parameters, if any needed, after --args, like -u, -t, etc., should be parsed by mytests.sikuli, maybe using argparse module or like that)
Click OK in the task creation dialog.

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