Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

send "spacebar key" using SendKeys.sendwait()

Tags:

c#

.net

sendkeys

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

like image 479
seddik Avatar asked Jun 30 '10 21:06

seddik


1 Answers

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".

like image 82
hemp Avatar answered Sep 28 '22 03:09

hemp