← Back to team overview

sikuli-driver team mailing list archive

[Bug 701363] Re: [request] App.open should support command line options on Windows

 

Hi, sorry to bump this old thread.

This issue was marked "Fix Committed" and "Fix Released" for x1.0-rc3,
but I'm unclear how it was fixed.  What is the recommended usage?

Mac OS X: 10.6.7
Sikuli: X-1.0rc3 (r930)
Firefox: 19.0.2


The following works: App.open("Firefox")
But this doesn't (which is what Bulkan recommended he'd like todo): App.open("Firefox http://cnn.com";)

The error I get is:

[log] App.open Firefox http://cnn.com(0)
[log] openApp: "Firefox http://cnn.com";
[error] App.open failed: Firefox http://cnn.com not found

Does "issue fixed" mean the correct way todo this task is
App.focus("Firefox"), type("l", KEY_CTRL), paste("http://cnn.com";),
etc...?  Or is there a way to open an app with parameters and it's just
not documented?

Thanks a lot!  I'm really enjoying sikuli!
Tom

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

Title:
  [request] App.open should support command line options on Windows

Status in Sikuli:
  Fix Released

Bug description:
  Environement
  -----------------
  Windows 7
  Sikuli-X-1.0rc1-win32
  JAVA_HOME = C:\Program Files (x86)\Java\jre6

  
  Trying to do the following does not work, Firefox does not start up.

  App.open(r"firefox -profile C:\testing\FF\SikuliUser")

  Looking at the code (Win32Util.cc) it seems like there is some quoting
  issues when calling CreateProcess

  http://msdn.microsoft.com/en-us/library/ms682425(v=vs.85).aspx

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


References