Welcome to the Monastery | |
PerlMonks |
Re: Keystoke Loggerby rchiav (Deacon) |
on Feb 20, 2002 at 20:06 UTC ( [id://146619]=note: print w/replies, xml ) | Need Help?? |
Yes, it can be done with VB.. and as far as I know, there's no way to do it that's completely Perl. Here's why.. First, you have to create a "System Wide Hook". This is done by creating a DLL. You can't do that in Perl. A "Hook" is basically a low level operation where you create a callback to an API function. In your case, you'd have to hook the Keyboard API. You can probably use Win32::API to create the app that loads the DLL, but not the DLL itself. Pick your poision.. VB or C++ for the DLL. There's info on VB here. There's something in C++ here but it involves more than just the keyboard. I could be wrong, but I'm pretty sure there's no pure Perl way to do it. If you're interested in some more advanced stuff, there's also Detours Which will inject code into an apps memory space, replacing functions in the app. Rich
In Section
Seekers of Perl Wisdom
|
|