sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #29877
Re: [Bug 1406257] Re: Problem with Raw Strings
Sir, i have already given you the code, that's not the wrong usage of
special characters.
On Mon, Dec 29, 2014 at 8:20 PM, RaiMan <rmhdevelop@xxxxxx> wrote:
> using wrong special character as double apostrophe (should be " but is
> ”)
>
> Supposing you are running the script with an ENG keyboard layout.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> 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
>
--
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