Click here to Skip to main content
15,897,891 members
Articles / Programming Languages / C#

Basic Keystroke Mining

Rate me:
Please Sign up or sign in to vote.
4.90/5 (27 votes)
12 May 2005CPOL2 min read 188.2K   6.4K   113  
A simple key logging implementation using Visual C# .NET.
/*
 *	ArticleKeyLog - Basic Keystroke Mining
 *
 *	Date:	05/12/2005
 *
 *	Author:	Alexander Kent
 *
 *	Description:	Sample Application for the Code Project (www.codeproject.com)
 */

using System;

namespace ArticleKeyLog
{
	/// <summary>
	/// Summary description for MainApp.
	/// </summary>
	class MainApp
	{
		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main(string[] args)
		{
			KeyLog_Test.Keylogger kl = new KeyLog_Test.Keylogger();

			kl.Enabled = true; // enable key logging

			kl.FlushInterval = 60000; // set buffer flush interval

			//kl.Flush2File(@"a:\logfile.txt", true); // force buffer flush
			
			Console.ReadLine();

		}
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Kentdome LLC
United States United States
Biography in progress Wink | ;-)

Comments and Discussions