Author | Message | Time |
---|---|---|
haZe | How would I write a simple VB keylogger? I was thinking maybe on text1_keypress..but I can't figure out how to send all the keys pressed to my program. A little help please? | February 19, 2003, 8:07 PM |
St0rm.iD | Have fun hooking the windows API in VB. Not too hard to do from C...I've done it a million times. | February 19, 2003, 9:16 PM |
haZe | ..? explain deeper please | February 19, 2003, 9:54 PM |
iago | you have to use a system hook, look up SetHookEx or SetWindowsHookEx or something like that | February 19, 2003, 11:07 PM |
haZe | OK I got it [code] Public Declare Function SetWindowsHook Lib "user32" Alias "SetWindowsHookA" (ByVal nFilterType As Long, ByVal pfnFilterProc As Long) As Long [/code] Now...How would I use that =/ | February 20, 2003, 7:08 AM |
Skywing | [quote]OK I got it [code] Public Declare Function SetWindowsHook Lib "user32" Alias "SetWindowsHookA" (ByVal nFilterType As Long, ByVal pfnFilterProc As Long) As Long [/code] Now...How would I use that =/[/quote] I'd suggest you look it up on MSDN Online. | February 20, 2003, 1:59 PM |
Etheran | Or the win32 help file will explain everything (there's a whole section in there about hooks). | February 21, 2003, 5:50 PM |
haZe | Nevermind, I found a very nice example on pscode.com, but thx ne ways | February 22, 2003, 7:43 AM |
n00blar | Hmm i noticed a nice little api function called 'GetAsyncKeyState' and i have code to make it work just as good if not better than a hook. you may also try a few of these other API functions (search msdn) GetKeyboardState, SetKeyboardState GetKeyState | February 22, 2003, 11:48 AM |
haZe | ya thats what the thing on pscodE used. | February 22, 2003, 12:10 PM |