C# Class AutoTyper.AutoTyper

Code partially inspired by http://blogs.msdn.com/b/toub/archive/2006/05/03/589423.aspx
Inheritance: IDisposable
Show file Open project: nmariot/AutoTyper Class Usage Examples

Public Methods

Method Description
AutoTyper ( string autoTypedText ) : System

Default constructor

Dispose ( ) : void

Dispose : remove the key hook

Private Methods

Method Description
CallNextHookEx ( IntPtr hk, int ncode, IntPtr wparam, IntPtr lparam ) : IntPtr
Debug ( string msg ) : void
GetModuleHandle ( string l ) : IntPtr
HookCallback ( int nCode, IntPtr wParam, IntPtr lParam ) : IntPtr

The callback called when a key has been typed

SetHook ( LowLevelKeyboardProc proc ) : IntPtr
SetWindowsHookEx ( int idHook, LowLevelKeyboardProc lpfn, IntPtr hMod, uint dwThreadId ) : IntPtr
UnhookWindowsHookEx ( IntPtr hk ) : bool

Method Details

AutoTyper() public method

Default constructor
public AutoTyper ( string autoTypedText ) : System
autoTypedText string List of autotyped text
return System

Dispose() public method

Dispose : remove the key hook
public Dispose ( ) : void
return void