Hack Forums
[.NET] Vb.net Enter Key? Press Button = Enter Key? [HELP] - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] Vb.net Enter Key? Press Button = Enter Key? [HELP] (/showthread.php?tid=2121702)



Vb.net Enter Key? Press Button = Enter Key? [HELP] - Invoke2 - Jan 18, 2012

I want to make it so when I press a button it actually presses enter on my keyboard once.

I tried looking up this on Google however all I could find are textbox examples?


* - Jash - Jan 18, 2012

you can use SlimDX(google this shit) for that, emulates real keyboard and mouse gestures, just a bit more complicated i guess.


* - +Bourbon - Jan 18, 2012

(Jan 18, 2012 03:48 AM)Invoke2 Wrote:  I want to make it so when I press a button it actually presses enter on my keyboard once.

I tried looking up this on Google however all I could find are textbox examples?

PHP Code

<?php 
SendKeys
.Send(Keys.Enter) 

That will simulate the enter key.


* - CPAManager - Jan 19, 2012

Or.. You can use the "KeyDown" event..