Please let me know how to press CTRL+SHIFT+END Keys together

Asked by swastik

I am unable to press CTRL+SHIFT+END Keys together using sikuli.

Following code is not working.

type (KEY_CTRL,Key.END, KeyModifier.SHIFT)

Please let me know how to press CTRL+SHIFT+END Keys together

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
swastik
Solved:
Last query:
Last reply:
Revision history for this message
Benny (385+benny) said :
#1

hallo
try this:

keyDown(KEY_CTRL)
keyDown(END)
keyDown(KEY_SHIFT)
   #do some thing
keyUp(KEY_CTRL)
keyUp(END)
keyUp(KEY_SHIFT)

let me know, if it works or not

greetings - benny

Revision history for this message
swastik (swastikrules) said :
#2

Following code solved the Problem.

type (Key.END, KeyModifier.SHIFT | KEY_CTRL )

Thanks

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

Might be typo?

correct:

type (Key.END, KeyModifier.SHIFT | KeyModifier.KEY_CTRL )

or

type (Key.END, KeyModifier.SHIFT + KeyModifier.KEY_CTRL )

Revision history for this message
thomas (ramitdas2009) said :
#4

yes this one is working fine but how to press two keys together CTRL + C

Revision history for this message
swastik (swastikrules) said :
#5

This will work:

type("c",KeyModifier.KEY_CTRL)

:)