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?
Have fun hooking the windows API in VB.
Not too hard to do from C...I've done it a million times.
..? explain deeper please
you have to use a system hook, look up SetHookEx or SetWindowsHookEx or something like that
OK I got it
Public Declare Function SetWindowsHook Lib "user32" Alias "SetWindowsHookA" (ByVal nFilterType As Long, ByVal pfnFilterProc As Long) As Long
Now...How would I use that =/
QuoteOK I got it
Public Declare Function SetWindowsHook Lib "user32" Alias "SetWindowsHookA" (ByVal nFilterType As Long, ByVal pfnFilterProc As Long) As Long
Now...How would I use that =/
I'd suggest you look it up on MSDN Online (http://msdn.microsoft.com/library/default.asp).
Or the win32 help file will explain everything (there's a whole section in there about hooks).
Nevermind, I found a very nice example on pscode.com, but thx ne ways
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
ya thats what the thing on pscodE used.