← Back to team overview

sikuli-driver team mailing list archive

[Question #269466]: Holding key down with keyDown() isn't repeating the key

 

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

I'm trying to test a Windows application that lists options when the 'o' key is held down for about a second. This is the script I tried:

keyDown('o')
wait(3)
keyUp()

However, the only effect seems to be that the letter 'o' is typed once.

I've tried keyDown/keyUp with other keys, to see what happens. When I manually press a letter key, that letter is typed repeatedly until I release the key. But using keyDown/keyUp in Sikuli, the letter is only typed once.

How would I achieve the same effect as manually holding down a key?

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