Mac 10.6: Key.Right not working

Asked by David Watson

I am running sikuli version X-1.0rc2 on Mac OS X 10.6.7.

I have a sikulii script with the following:

type(Key.RIGHT)

running against Aperture 3.0.2.

I have tried all of the key combinations in the sikuli documentation for arrows but none of them work.

When I run sikuli log says, [log] TYPE ""

But the key clearly doesn't fire in aperture.

Is there anything else I could try? Thanks.

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
RaiMan Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

seems not to be a bug

Revision history for this message
RaiMan (raimund-hocke) said :
#2

same configuration - no problems here:

ap = App("Aperture")
apWin = Region(ap.window())
ap.focus()
apWin.highlight(2)
type(Key.RIGHT)

Supposing: Aperture is running and an image is selected, that has a right neighbor

On Mac it is necessary, that the target app has focus, to accept mouse and keyboard actions.

Revision history for this message
Miguel Martinez (martinezmi) said :
#3

I am running 10.6.8 and also having this trouble.

In my example I am simply trying to switch to TextEdit.app and move the cursor one character to the right.

Code:

App.focus("TextEdit.app")
wait(1)
type(Key.RIGHT)

The following code, on the other hand, works in focusing on TextEdit.app and moving the cursor one character UP!

Code:

App.focus("TextEdit.app")
wait(1)
type(Key.UP)

This is sort of frustrating since my current primary use for the tool is programatic text manipulation using very large text files.

Revision history for this message
RaiMan (raimund-hocke) said :
#4

Seems to be a special problem with OSX 10.6 and the used Java.

Tested with Sikuli 1.0.0 on 10.6.8 using Java 7 and Java 6 latest versions: no problem.

Can you help with this problem?

Provide an answer of your own, or ask David Watson for more information if necessary.

To post a message you must log in.