private void BootstrapLogger()
 {
     _hookManager = new HookManager();
     _logBuffer = LogBuffer.Instance;
     _hookManager.KeyPressed += hookManager_KeyPressed;
     _hookManager.MouseClick += hookManager_MouseClick;
 }
示例#2
0
        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();
        }