sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #08872
Re: [Question #188396]: Typing colons with windows
Question #188396 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/188396
j gave more information on the question:
So windows 7 seems to have one keyboard layout for every application.
If I change the sikuli-ide-layout to German, I always get this:
[error] Fehlermeldung: Traceback (most recent call last):
File "C:\Users\KadeMa\AppData\Local\Temp\sikuli-tmp6334737993898198610.py", line 3, in
type("test:test")
at sun.awt.windows.WRobotPeer.keyPress(Native Method)
at java.awt.Robot.keyPress(Unknown Source)
at org.sikuli.script.DesktopRobot.doType(DesktopRobot.java:111)
at org.sikuli.script.DesktopRobot.typeChar(DesktopRobot.java:118)
at org.sikuli.script.Region.type(Region.java:809)
at org.sikuli.script.Region.type(Region.java:789)
at sun.reflect.GeneratedMethodAccessor42.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
If Sikuli-IDE has US layout and the program Sikuli types into has German
layout, there are things like ü instead of a colon.
If Sikuli-IDE and the program Sikuli types into both have US layout, the
colons can be typed normally.
I also found out that the problem appears with only one colon, too.
Still looking for a nice workaround that does neither include change
keyboard layouts all the time and nor paste(). Suggestions are welcome.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.