← Back to team overview

sikuli-driver team mailing list archive

Re: [Bug 1406257] Re: Problem with Raw Strings

 

Since I cannot see, what you are doing, I can only show you, what I see:


The quoting character on the left is definitely different from the one on the right, which is the one, that works.
On an ENG keyboard layout it is on the a-row second right using shift (shift ' )

The wrong one is produced using shift alt [

Raimund


> On 30 Dec 2014, at 19:58, Shubham Soin <s.soin99@xxxxxxxxx> wrote:
> 
> So sir what quotes should i use, i'm using the same keyboard type for both
> the commands.
> 
> On Tue, Dec 30, 2014 at 9:34 PM, RaiMan <rmhdevelop@xxxxxx> wrote:
> 
>> 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 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 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


** Attachment added: "Screen Shot 2014-12-31 at 11.08.57.png"
   https://bugs.launchpad.net/bugs/1406257/+attachment/4290450/+files/Screen%20Shot%202014-12-31%20at%2011.08.57.png

-- 
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


References