Windows Keys with SendKey
Keywords: Windows Keys SendKey
Question:
What is the SendKey code for the special "Windows Keys" on the newer keyboards? There is the key with the Windows logo that opens the Start Menu (among other things) and also the other key with an icon that sorta looks like what you get when you right-click on something, and this is exactly what it does. I need both of these SendKey codes.Answer:
The Windows key is a Ctrl-EscapeSendKey("^{ESC}")The menu key is Shift-F10
SendKey("+{F10}")NOTE: Hopefully you are not trying to run something off the Windows Start Menu. What are you trying to do? There is almost *always* a better option than launching something via the Start Menu with SendKey.
Use the Run, ShellExecute and RunShell functions, to launch: Apps, Shortcuts, Urls.
If you need to launch a Control Panel applet, see the following technical support article: Running Control Panel Applets
Article ID: W14729Filename: Windows Keys with SendKey.txt