WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Sending Keystrokes

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

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-Escape
SendKey("^{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:   W14729
Filename:   Windows Keys with SendKey.txt
File Created: 2017:08:29:11:58:58
Last Updated: 2017:08:29:11:58:58