how to simulate Key Down Combinations ( Win Key + D)

Asked by UmaMaheshwarRao

I am new to sikuli . I am trying to get the windows Desktop by pressing the (Windows Key + D ). which function we should use for this combination

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
UmaMaheshwarRao
Solved:
Last query:
Last reply:
Revision history for this message
Harry Readinger (temporary22) said :
#1

it would be type("d", Key.WIN)

for windows + D

NOTE: you must always put the "regular" key first, so type(Key.WIN, "d") wouldn't work (to my knowledge).

Hope this helps.

Read: http://sikuli.org/docx/keys.html?highlight=key%20modifiers#key-constants for in depth information

Revision history for this message
UmaMaheshwarRao (buma) said :
#2

Thanks.
It worked. passing the "regular" key as the first argument works. but instead of Key.WIN I need to pass it as KEY_WIN.

type("d",KEY_WIN)

Note: Passing "D" doesn't work here. it should be "d"

Revision history for this message
vivek (vivek24aggarwal) said :
#3

Thanks Harry.
Key modifier worked for me