← Back to team overview

sikuli-driver team mailing list archive

[Bug 993446] [NEW] Modifier keys not working outside of the IDE

 

Public bug reported:

I used Raiman's example to call the library directly (on the Mac) as
follows:

java -d32 -Dpython.path=/Library -jar /Applications/Sikuli-
IDE.app/Contents/Resources/Java/sikuli-script.jar $1

Only one thing appears to work differently than within the IDE with:

type("a", KeyModifier.CMD)

Form within the IDE the command key is sent with the "a"and the text in
the application under test is selected. However, running from the
command line, all modifiers are ignored.

This is the relevant log line from the IDE, which looks correct:

[log] ⌘+TYPE "a"

And here is the same line from the command line output, running sikuli
with the above java command. It appears that sikuli chose the wrong key
code for the modifier.

[log] ?+TYPE "a"

I am running on OSX 10.7.3 with the very latest java vm from Apple.
Could I be missing some library, path or something on the command line?
Everything else I have tried with Sikuli (which is quite a lot) has
worked fine from the command line.

I can make a local patch of Sikuli if someone would be kind enough to
tell me what to change.

** Affects: sikuli
     Importance: Undecided
         Status: New

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

Title:
  Modifier keys not working outside of the IDE

Status in Sikuli:
  New

Bug description:
  I used Raiman's example to call the library directly (on the Mac) as
  follows:

  java -d32 -Dpython.path=/Library -jar /Applications/Sikuli-
  IDE.app/Contents/Resources/Java/sikuli-script.jar $1

  Only one thing appears to work differently than within the IDE with:

  type("a", KeyModifier.CMD)

  Form within the IDE the command key is sent with the "a"and the text
  in the application under test is selected. However, running from the
  command line, all modifiers are ignored.

  This is the relevant log line from the IDE, which looks correct:

  [log] ⌘+TYPE "a"

  And here is the same line from the command line output, running sikuli
  with the above java command. It appears that sikuli chose the wrong
  key code for the modifier.

  [log] ?+TYPE "a"

  I am running on OSX 10.7.3 with the very latest java vm from Apple.
  Could I be missing some library, path or something on the command
  line? Everything else I have tried with Sikuli (which is quite a lot)
  has worked fine from the command line.

  I can make a local patch of Sikuli if someone would be kind enough to
  tell me what to change.

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


Follow ups

References