[request] passing arguments with space to Sikuli-IDE-w.bat

Bug #963787 reported by andrea
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
SikuliX
Fix Released
Critical
RaiMan

Bug Description

Sikuli version: 1.0rc3
Operating System: Windows XP SP3

I need to pass to some arguments to sikuli script using Windows cmd line. The instruction is the following:

cmd /c "C:\Program Files\Sikuli X\Sikuli-IDE-w.bat" -r D:\Sikuli\Alarm_Enhanced_Navigation\prova_param.sikuli pippo peppe "text with some space"
The last argument contains space, so i put in double quote.
If i do like this sikuli does not start. I check on task manager and java does not start at all.
If I try the same script with arguments with no space it works fine.
Here the sikuli program used:

import os
import sys

[insuser,alarmsource]=sys.argv[1:]
popup(insuser)
popup(alarmsource)

Tags: scriptrun
RaiMan (raimund-hocke)
summary: - passing arguments with space to Sikuli-IDE-w.bat
+ [request] passing arguments with space to Sikuli-IDE-w.bat
Changed in sikuli:
importance: Undecided → Wishlist
RaiMan (raimund-hocke)
Changed in sikuli:
status: New → Fix Committed
importance: Wishlist → High
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → x1.0
tags: added: scriptrun
sam (sam-j8117rzjg7u)
Changed in sikuli:
status: Fix Committed → New
status: New → Fix Committed
Revision history for this message
RaiMan (raimund-hocke) wrote :

the new command file sikuli-script should do that correctly

Changed in sikuli:
importance: High → Critical
RaiMan (raimund-hocke)
Changed in sikuli:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.