← Back to team overview

sikuli-driver team mailing list archive

[Question #143874]: keyDown(Key.SHIFT) not working on Win?

 

New question #143874 on Sikuli:
https://answers.launchpad.net/sikuli/+question/143874

I have this same script for Mac and Windows. On Mac, it works as expected, but it looks like the shift key isn't pressed on Windows.

Have notepad open with text "asdf" and run the code below:
keyDown(Key.SHIFT)
type(Key.LEFT)
type(Key.LEFT)
type(Key.LEFT)
keyUp(Key.SHIFT)

It should highlight "sdf", but on Windows, it only moves the cursor between "a" and "s" as if it only moved left 3 times without shift key down.

Is this a bug? Any work around?

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.