sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #29871
[Question #259863]: Problem with Raw Strings
New question #259863 on Sikuli:
https://answers.launchpad.net/sikuli/+question/259863
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 :)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.