kbforme has asked for the wisdom of the Perl Monks concerning the following question:

Hi, Can someone let me know how I can capture the keystroke values as I type on the keyboard and append it to a flat file? Thanks and Regards,
  • Comment on Appending keystroke values to a flat file

Replies are listed 'Best First'.
Re: Appending keystroke values to a flat file
by tachyon (Chancellor) on Aug 24, 2004 at 05:20 UTC

    See Is there any way to record keystrokes. If you want to make a stealth keylogger Perl is not the correct choice of language, nor is this an appropriate forum.

    cheers

    tachyon

    unconsidered by ybiC:   Keep/Edit/Delete: 6/3/7, and not exact duplicate

Re: Appending keystroke values to a flat file
by tachyon (Chancellor) on Aug 24, 2004 at 05:18 UTC

    I am almost certain this is not what you want, but it is all I am going to give you. Building stealth keyloggers is not in my list of useful tasks.

    use Term::ReadKey; while (defined ($key = ReadKey(0)) ) { open F, '>>./keys.dat' or die $!; print F $key; close F; }