sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #44017
Re: [Question #101902]: Cannot type slash character. This slash: "/" --- workaround: alt + numpad
Question #101902 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/101902
Summary changed to:
Cannot type slash character. This slash: "/" --- workaround: alt + numpad
Description changed to:
************** workaround
Found the best solution. Universal on all Windows systems is alt + numpad (from comment #7)
# So for Slash
def typeSlash():
keyDown(Key.ALT)
type(Key.NUM4+Key.NUM7)
keyUp()
---------------------------------------------
When I issue the command on the line 3 of my script:
type("/")
The Sikuli IDE does not send the slash character ("/") and throw the following error:
[sikuli] [Error] source lineNo: 3
[sikuli] [Error] Traceback (innermost last):
File "C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\sikuli-tmp8004614922768274155.py", line 3, in ?
File "C:\Arquivos de programas\Sikuli\sikuli-ide-full.jar\Lib/python/edu/mit/csail/uid/Sikuli.py", line 514, 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:465)
at edu.mit.csail.uid.SikuliScript.doType(SikuliScript.java:457)
at edu.mit.csail.uid.SikuliScript.type_ch(SikuliScript.java:569)
at edu.mit.csail.uid.SikuliScript.type(SikuliScript.java:626)
at edu.mit.csail.uid.SikuliScript.type(SikuliScript.java:446)
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
Thanks for the attention and congratulation for this very useful tools
:)
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.