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

Bug #963787 reported by andrea on 2012-03-24
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Sikuli
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)

RaiMan (raimund-hocke) on 2012-03-24
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) on 2013-02-22
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) on 2013-03-04
Changed in sikuli:
status: Fix Committed → New
status: New → Fix Committed
RaiMan (raimund-hocke) wrote :

the new command file sikuli-script should do that correctly

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

Other bug subscribers