Search code examples
sikuli

KeyModifier.SHIFT not working in Sikuli


I am new to Sikuli. I need to do Ctrl+Shift+Down in Sikuli.

I have tried:

type(Key.DOWN, KeyModifier.SHIFT + KeyModifier.CTRL) and type(Key.DOWN, KeyModifier.SHIFT|KeyModifier.CTRL)

but none of them works.Both produce the same effect as pressing Ctrl+Down.

Please help.


Solution

  • Due to some bug, Shift combinations do not work if NumLock is on. The solution I used was to toggle it using:

    type(Key.NUM_LOCK)
    

    I found the answer here: https://answers.launchpad.net/sikuli/+question/272223