Holding down CTRL+SHIFT+ALT: use keyDown(Key.CTRL + Key.SHIFT + Key.ALT)

Asked by IAN ROBINSON

Hi

I'm using the following to restart our software (it shuts down and relaunches)... this works :)
    type(Key.F5, Key.CTRL)

Immediately after pressing CTRL+F5 the user can press CTRL+SHIFT+ALT (as a system recovery mode)
I've been trying to simulate this using..

    keyDown(Key.CTRL)
    keyDown(Key.SHIFT)
    keyDown(Key.ALT)

After 5 seconds I then issue
    keyUp()

However the system does not recognise that the 3 buttons are down.
The system only checks for the key presses when it first starts (first few seconds)

I have tried trying to gain focus to the new instance but by this time the system has restarted :(

How can I make this work.?

Thanks
IAN

Question information

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

Not sure, wether this works at all this way.

You might try with:
keyDown(Key.CTRL + Key.SHIFT + Key.ALT)

so it internally gets one Robot action.

Revision history for this message
IAN ROBINSON (ian.robinson) said :
#2

Great, That works

many thanks
IAN