← Back to team overview

sikuli-driver team mailing list archive

[Bug 936432] Re: type of CMD sequence using upper case letter causes failure and CMD stuck on

 

According to the specification, this is not a bug, since it is the users responsibility to specify the correct key combinations.
It is not Sikuli's reponsibility, to check, wether a key combination might lead to problems.

In your case type("C", KeyModifier.CMD) leads to a shift-cmd-c

LOL: this is exactly the key combination, that can be used, to interrupt a never-ending Sikuli script.
So your "test" leads to the sudden death of the running script and might leave Sikuli (and the keyboard ?) in a broken state.

** Summary changed:

- type of CMD sequence using upper case letter causes failure and CMD stuck on
+ type("C", KeyModifier.CMD) crashes script --- yes, it is Sikuli's abort key combo

** 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/936432

Title:
  type("C", KeyModifier.CMD) crashes script --- yes, it is Sikuli's
  abort key combo

Status in Sikuli:
  Invalid

Bug description:
  Under OSX trying to a copy by issuing a CMD-C key sequence using the
  type command, I have discovered that it you use upper case it causes a
  failure that leaves the system in a weird state where the CMD key is
  stuck down until you exit the IDE.

  Open the IDE and put this into a script and run it:

  type("c", KeyModifier.CMD)

  It runs with no problem.

  But change the case of the C so that it is:

  type("C", KeyModifier.CMD)

  and the script will crash with a message like this

  [error] Stopped
  [error] An error occurs at line 1
  [error] Error message:

  java.lang.InterruptedException: sleep interrupted

  The keyboard will then have the CMD key stuck down and all keys
  pressed will be CMD key sequences until you exit the IDE and then it
  will return to normal

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


References