← Back to team overview

sikuli-driver team mailing list archive

[Bug 911212] Re: type("\\") leads to exception

 

This is not a bug, this is a feature.

see faq 933 --- a \ cannot be typed.

** Changed in: sikuli
       Status: New => Invalid

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

Title:
  type("\\") leads to exception

Status in Sikuli:
  Invalid

Bug description:
  having Sikuli type a backslash leads to an exception, see stack trace below.
  Workaround: use paste("\\") instead

   type("\\")
   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.GeneratedMethodAccessor32.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

  Sikuli 1.0rc3 (r905)
  Windows 7, 32 bit

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


References