sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #51930
[Bug 513312] Re: [1.1.x] Invalid key code when ":" included in a string with type() --- request: should be possible
Really strange, I worked around the issue by using openApp instead of using the Run window, but now it fails _earlier_ when I want it to open the File menu in our application (German: Datei) by using "type('d', KeyModifier.ALT)" with the message:
java.lang.IllegalArgumentException: Key: Not supported character: d
I have no clue what is causing this and why and when it happens. And I
don't want to work around every key combo as in this case it's one of
the points of testing, if the menu responds to key combos. Is there a
limit how big a script can be?
Any ideas on how to debug it?
--
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