none
Key Log saved when application is active but not when application is inactive. RRS feed

  • Question

  • I'm trying to make a key logger which will save all the keys pressed in any application, either its Notepad, Word, EditPad, Any Editor or any other window or editor. With the following code i'm able to get the key log when the application is active and i type any thing. But it does not save the key log when its inactive or when we type anything in any other editor.

    private

    void Form1_KeyUp(object sender, System.Windows.Forms.KeyEventArgs e)
    {
    listBox1.Items.Add(e.KeyCode);
    StreamWriter sw = new StreamWriter(@"D:\keys.txt", true);
    sw.Write(e.KeyCode);
    sw.Close();
    }

    plz help me to overcome the problem asap.

    Thanks in aticipation.

    Wednesday, April 15, 2009 1:04 PM