← Back to team overview

sikuli-driver team mailing list archive

[Bug 513312] Re: [1.1.x] Invalid key code when ":" included in a string with type() --- request: should be possible

 

I recently upgraded my test system from Sikuli 1.1.1 to 1.1.4 and since then I have a strange issue with the following code:
type("r", KeyModifier.WIN)

it seems to work just fine on its own but when used later in the code it
causes a java.lang.IllegalArgumentException Key: Not supported
character: r

I've also tried:
type('r', KeyModifier.WIN)
type("r", Key.WIN)
type('r', Key.WIN)

keyDown(Key.WIN)
type("r")
keyUp(Key.WIN)

they all fail.

What could cause this? I haven't change the part of my code in question
since upgrading and it always worked just fine with 1.1.1

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

Title:
  [1.1.x] Invalid key code when ":" included in a string with type() ---
  request: should be possible

Status in Sikuli:
  In Progress

Bug description:
  Trying the following code:
  type("cd C:\\temp\\\r");
  The result is:
  [sikuli] type: 'cd C:\temp\
  ' +0
  [sikuli] [Error] source lineNo: 2
  [sikuli] [Error] Traceback (innermost last):
    File "C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\sikuli-tmp3784144668038766078.py", line 2, in ?
    File "C:\Archivos de programa\Sikuli\sikuli-ide-full.jar\Lib/python/edu/mit/csail/uid/Sikuli.py", line 403, in type
  	at sun.awt.windows.WRobotPeer.keyPress(Native Method)

          at java.awt.Robot.keyPress(Unknown Source)

          at
  edu.mit.csail.uid.SikuliScript.doType(SikuliScript.java:409)

          at
  edu.mit.csail.uid.SikuliScript.doType(SikuliScript.java:410)

          at
  edu.mit.csail.uid.SikuliScript.doType(SikuliScript.java:401)

          at
  edu.mit.csail.uid.SikuliScript.type_ch(SikuliScript.java:504)

          at edu.mit.csail.uid.SikuliScript.type(SikuliScript.java:542)

          at edu.mit.csail.uid.SikuliScript.type(SikuliScript.java:390)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
  Source)

          at java.lang.reflect.Method.invoke(Unknown Source)

  
  java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: Invalid key code

  I am using Windows XP (Spanish) and Sikuli latest version.

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