How to hook the keyboard. [VB.NET] [TuT] - Printable Version +- Support Forums (https://www.supportforums.net) +-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87) +--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18) +---- Forum: Visual Basic and the .NET Framework (https://www.supportforums.net/forumdisplay.php?fid=19) +---- Thread: How to hook the keyboard. [VB.NET] [TuT] (/showthread.php?tid=916) |
How to hook the keyboard. [VB.NET] [TuT] - Vorfin - 10-09-2009 OK, this is how to make a low level keyboard hook in VB.NET (A keyboard hook, not a keylogger Although it can be used for the latter.) So make a form with a text box, then view the code. Put this into your "Public Class Form1" Code: Public Class KeyboardHook Now under that we create the hook. Code: Private WithEvents kbHook As New KeyboardHook Then we handle the events. Code: Private Sub kbHook_KeyDown(ByVal Key As System.Windows.Forms.Keys) Handles kbHook.KeyDown Then Finish the code. Code: End Sub Download: http://www.multiupload.com/9OXH9J3G3U ***Originality written by Vorfin(Me) For LeetCoders*** RE: How to hook the keyboard. [VB.NET] [TuT] - huso69 - 10-09-2009 what is a keyboard hook for ? RE: How to hook the keyboard. [VB.NET] [TuT] - Vorfin - 10-09-2009 It intercepts and re-directs the keys that are pressed to your program before they reach their intended destination. That makes it log every key, unlike GetAnsyc which is highly unreliable. RE: How to hook the keyboard. [VB.NET] [TuT] - Lazydude2000 - 10-09-2009 Heh, reminds me of a keylogger. Anyway, good tutorial. I'll be sure to try this when i get on my computer RE: How to hook the keyboard. [VB.NET] [TuT] - Skajper - 10-09-2009 Nice job...But keyscrambler beat's the crap out of keylogger's xD.Sorry for rude word's.... RE: How to hook the keyboard. [VB.NET] [TuT] - flAmingw0rm - 10-10-2009 Good job, thanks for the help bro. RE: How to hook the keyboard. [VB.NET] [TuT] - Extasey - 10-10-2009 Good tutorial! thank you, (5 star) RE: How to hook the keyboard. [VB.NET] [TuT] - ...w3 - 10-10-2009 as always... wonderful coding Vorfin RE: How to hook the keyboard. [VB.NET] [TuT] - huso69 - 10-10-2009 Vorfin how can i make it so that if i press ( and shows the ( on the text box please help RE: How to hook the keyboard. [VB.NET] [TuT] - Akshay* - 10-10-2009 Thanx...vorfin |