Пример #1
0
 private void btnRecord_Click(object sender, EventArgs e)
 {
     events.Clear();
     lowLevelMouseListener.HookMouse();
     lowLevelKeyboardListener.HookKeyboard();
     btnStop.Enabled = true;
 }
        public void registerListeners()
        {
            Console.WriteLine("Register callbacks");

            _listener.HookKeyboard();
            _mouseListener.HookMouse();

            _listener.KeyDown    += _listener_OnKeyPressed;
            _listener.KeyUp      += _listener_KeyUp;
            _listener.KeyUnicode += _listener_KeyUnicode;

            _mouseListener.MouseEvent += _mouseListener_MouseEvent;
        }