type(KeyModifier.CTRL + KeyModifier.SHIFT) now working

Asked by Tal Mishaely

Hello,
I'm trying to simulate Ctrl+Shift to make the cursor ready to write in english, left to right.
I tried:
type(KeyModifier.CTRL + KeyModifier.SHIFT) to no avail.

Can someone please tell me what I need to write?

Using Sikuli r03

Thanks!

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Bekir Dogru
Solved:
Last query:
Last reply:
Revision history for this message
Best Bekir Dogru (bekirdogru) said :
#1

I guess you can use it as:

type(Key.SHIFT, KeyModifier.CTRL)

but if you need these two buttons to be kept pressed then you need to do:

keyDown(Key.SHIFT)
keyDown(Key.CTRL)
#Your code is here
keyUp()

Revision history for this message
Tal Mishaely (tmishaely) said :
#2

Thank you so much!
Finally, it worked.

Thanks again. :)

Revision history for this message
Tal Mishaely (tmishaely) said :
#3

Thanks Bekir Dogru, that solved my question.