sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #25410
[Question #247417]: Change in Script Execution Behaviour when Running from Command Line
New question #247417 on Sikuli:
https://answers.launchpad.net/sikuli/+question/247417
Hi,
I trigger my Sikuli script via command line in a batch file (I use 64-bit Windows 7 machine with Java 7 installed on it). With the earlier version of Sikuli, I used the following command to execute my script:
"C:\Program Files (x86)\Sikuli X\Sikuli-IDE-w.bat" -r "C:\ABP\Executables\skl-files\Refresh-Batches.skl" > C:\ABP\Logs\Refresh-Batches.log
I am using the print function at various places in my script to help me create a log of events that happened when running my script. When running my script from command line, I am redirecting this information to a log file, which I examine after the execution of the script.
Now, after upgrading to Sikuli 1.0.1, I am using the following command to execute my script from command line:
"C:\Sikuli-64-Bit\runIDE.cmd" -r "C:\ABP\Executables\skl-files\Register-Files.skl" > C:\ABP\Logs\Register-Files.log
The script is running fine. The only change in behavior that I see is:
In the earlier version of sikuli, if there is a run time error, the error pops up in a dialog box and that gives me a visual confirmation that the script has stopped executing. In the latest version of of sikuli, the run time error is not being popped up in a dialog box. Instead it is being redirected to my log file. Hence, I am not knowing (immediately) that the script has stopped executing.
Is there a way to bring back the old behavior in this version of sikuli. I find the old behavior much more helpful.
Thanks,
Rafiq
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.