Is there a way I can just press CTRL and ALT ?

Asked by srijith

I just want to press CTRL and ATL. Is there a way I can do it using sikuli IDE ? I tried some combinations and it throws me error
[error] script [ *Untitled ] stopped with error in line 2

I just need to press CTRL + ALT

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

KeyDown(Key.ALT)
KeyDown(Key.CTRL)
KeyUp()

Revision history for this message
srijith (srijithbhandary) said :
#2

Is it working ? its not working for me
 NameError ( name 'KeyDown' is not defined ) :(

Revision history for this message
srijith (srijithbhandary) said :
#3

type(Key.ALT + Key.CTRL) is throwing [log] TYPE "??" error

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

sorry ...

keyDown(Key.ALT)
keyDown(Key.CTRL)
keyUp()

Revision history for this message
srijith (srijithbhandary) said :
#5

Thanks RaiMan, that solved my question.