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

Asked by IAN ROBINSON on 2019-04-15

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:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
IAN ROBINSON
Solved:
2019-04-15
Last query:
2019-04-15
Last reply:
2019-04-15
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.

IAN ROBINSON (ian.robinson) said : #2

Great, That works

many thanks
IAN