sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #10381
[Bug 993446] Re: Modifier keys not working outside of the IDE
Just tested on my Mac Lion:
switchApp("Safari"); wait(1)
type("l", KeyModifier.CMD); wait(2)
type(Key.LEFT); wait(2)
type("a", KeyModifier.CMD); wait(2)
click(Location(800,120)) # a neutral click point for this test
This did exactly the same in IDE and from command line using the
mentioned command.
BTW: [log] ?+TYPE "a"
is printed in the terminal window, because this does not understand UTF-8 by default.
So you might have another problem (timing? focus?).
** Changed in: sikuli
Status: New => Opinion
** Summary changed:
- Modifier keys not working outside of the IDE
+ Mac: Modifier keys not working when running script in Terminal using sikuli-script.jar
--
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:
Mac: Modifier keys not working when running script in Terminal using
sikuli-script.jar
Status in Sikuli:
Opinion
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
References