send "spacebar key" using SendKeys.sendwait()

seddik picture seddik · Jun 30, 2010 · Viewed 36.6k times · Source

I was wondering how to send spacebar key using SendKeys.send(); It works with the other keys but only the spacebar !!
Here is the link where I found the other keys http://msdn.microsoft.com/en-us/library/system.windows.forms.sendkeys.aspx

Answer

hemp picture hemp · Jun 30, 2010

Per the documentation you linked, SendKeys.send(" "); will send a space key.

The only keys which require special codes are "characters that aren't displayed when you press a key".