← Back to team overview

sikuli-driver team mailing list archive

[Bug 1406257] Re: Problem with Raw Strings

 

Again and definitely (I tested it)

the problem are the wrong quoting characters at
”Wi-Fi” 
in the above nets command.

This bug is closed. If you decide to continue with this problem: use the
related question.

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

Title:
  Problem with Raw Strings

Status in Sikuli:
  Invalid

Bug description:
  Sikuli version:  1.0.1

  OS : Windows 8.1, 64-bit

  When i use the following raw string inside the type() command, its
  works well without any errors.

  cmdd=r'c:\Program Files\myapp.exe -x "c:\Some Place\some.txt" >..\log.txt'
  #(it is one of the examples from the sikuli docs)

  type(cmdd) 
  #I'm using the type command to type it on windows command prompt

  But when i use this string(as mentioned below), sikuli gives an error
  as follows

  [error] script [ *Untitled ] stopped with error in line 26
  [error] java.lang.IllegalArgumentException ( java.lang.IllegalArgumentException: Cannot convert character � )

  This is the code:

  cm1=r'netsh interface ip set address name= ”Wi-Fi” static 192.168.10.121 255.255.255.0 192.168.10.1'
  type(cm1)

  
  I don't whether its a bug or not? but when i tried this multiple times, sometimes it runs perfectly, sometimes it gives the error. But the first code like i said always runs successfully, but the second code gives the error. 

  Kindly see to it if its a bug.
  Thanks :)

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


Follow ups

References