← Back to team overview

sikuli-driver team mailing list archive

[Bug 963787] Re: [request] passing arguments with space to Sikuli-IDE-w.bat

 

** Changed in: sikuli
       Status: New => Fix Committed

** Changed in: sikuli
   Importance: Wishlist => High

** Changed in: sikuli
     Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
    Milestone: None => x1.0

** Tags added: scriptrun

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/963787

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

Status in Sikuli:
  Fix Committed

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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/963787/+subscriptions


References