how to write sikuli function for pressing windows key/

Asked by K.AnveshVarma

function that is required for typing windows key

Question information

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

try to use

keyDown(Key.WIN)
keyUp()

according to the reference guide it should work.

Revision history for this message
Steen (steenc) said :
#2

This does not work at Win 8 32 bit...

Invalid key code:
keyDown(Key.WIN)
keyUp()

Revision history for this message
Steen (steenc) said :
#3

            type("r", KeyModifier.WIN)
            wait(2)
            paste(text)
            wait(2)
            type(Key.ENTER)

Should work for win8 and win7.....:0)
No garantiiiiies though!.....

Can you help with this problem?

Provide an answer of your own, or ask K.AnveshVarma for more information if necessary.

To post a message you must log in.