Beispiel #1
0
        public a()
        {
            this.InitializeComponent();
            int hotkeyId = 0;

            a.RegisterHotKey(this.Handle, hotkeyId, 0U, 45U);
            a.RegisterHotKey(this.Handle, hotkeyId + 1, 0U, 35U);
            this.timer.Start();
            MouseHook.Start();
        }
Beispiel #2
0
        public a()
        {
            InitializeComponent();
            int num = 0;

            RegisterHotKey(base.Handle, num, 0u, 45u);
            RegisterHotKey(base.Handle, num + 1, 0u, 35u);
            timer.Start();
            MouseHook.Start();
        }
Beispiel #3
0
 public static void stop()
 {
     MouseHook.UnhookWindowsHookEx(MouseHook._hookID);
 }
Beispiel #4
0
 public static void Start()
 {
     MouseHook._hookID = MouseHook.SetMouseHook(MouseHook._proc);
 }