← Back to team overview

sikuli-driver team mailing list archive

[Bug 513312] Re: Invalid key code when ":" included in a string with type()

 

will only be available in version 2, since there is no generally
available solution for all platforms.

** Changed in: sikuli
   Importance: Wishlist => Medium

** Changed in: sikuli
    Milestone: None => 2.0.0

** Summary changed:

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

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