private void BootstrapLogger() { _hookManager = new HookManager(); _logBuffer = LogBuffer.Instance; _hookManager.KeyPressed += hookManager_KeyPressed; _hookManager.MouseClick += hookManager_MouseClick; }
static void Main(string[] args) { var mgr = new HookManager(); mgr.KeyDown += GlobalKeyDown; mgr.MouseMove += GlobalMouseMove; System.Console.WriteLine("Connected."); var messagePump = new WindowsMessagePump(); messagePump.Run(); System.Console.WriteLine("Finished."); System.Console.ReadKey(); }