Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Keyboard capture

by sunadmn (Curate)
on Oct 20, 2003 at 19:13 UTC ( #300716=perlquestion: print w/ replies, xml ) Need Help??
sunadmn has asked for the wisdom of the Perl Monks concerning the following question:

Good day fellow monks. I was asked today if I could write a program to run under windows that could capture every keyboard stoke typed on a certain machine and also log what program the strokes were pointed towards. Now I know there are many different spy type programs readily available on the net, but since this would be spread across a corporate environment this might be a bit costly, so I was wondering if any of my fellow monks had thought of or know of a way to do this.

Any pointers would be great.
Thanks in advanced

Comment on Keyboard capture
Replies are listed 'Best First'.
Re: Keyboard capture
by inman (Curate) on Oct 21, 2003 at 08:08 UTC
    Typically, the way to do this is to write a Windows Hook DLL. There are a number of sites that will give you help with this using C or VB. Unfortunately the key appears to be the ability to create a DLL to house your hook code which I don't think you can do with perl (I am glad to receive coments if this is not the case).

    This link should give you some Ideas.


Re: Keyboard capture
by Anonymous Monk on Oct 20, 2003 at 20:20 UTC
    Perl would not be a good candidate for this.
Re: Keyboard capture
by zentara (Archbishop) on Oct 21, 2003 at 16:27 UTC
    You might look at UberKey. It works on linux, and it is very simple c code, maybe you can get it to compile and work on windows. It's free.
Re: Keyboard capture
by naChoZ (Curate) on Oct 22, 2003 at 04:04 UTC

    Not cheap, but might be worth a look.

    Diplomacy is the art of saying "Nice doggie" until you can find a rock.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://300716]
Approved by BazB
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (9)
As of 2015-08-04 12:18 GMT
Find Nodes?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...

    Results (62 votes), past polls