cancel
Showing results for 
Search instead for 
Did you mean: 

How to use Windows Key in Send Keys

PeterBly
Level 3
I am trying to do a minimize of all of the open applications thru Global Send Keys. Ideally, I would send Win Key + M (or D). I am having a hard time finding the code for the Windows key. I have tried LWIN, LWINDOWN, RWIN, RWINDOWN, WIN. Any ideas? Thanks Pete
3 REPLIES 3

Anonymous
Not applicable
You could try {{CTRL}{ESC}}M

PeterBly
Level 3
Thanks Rachana. I did try that and that combination does not work for me. I find that Ctrl - Esc does open the Programs, but it does not work in combination with other keys. I tried that on both Windows 7 and 10, neither worked. Pete

Ravindersaini
Level 7
Hi Pete, You can create an scf file i.e shell command file with below code into a notepad and save it as ""desktop.scf"" . Once done assign a Hotkey combination[Press CTRL+ALT+'anykey'] to the shortcut file of the original file.And then using send keys/events you can open pass the hotkey. [Shell] Command=2 IconFile=explorer.exe,3 [Taskbar] Command=ToggleDesktop   Regards, Ravinder Saini