Ejemplo n.º 1
0
        public Form1()
        {
            InitializeComponent();

            this.TopMost = true;
            SetWindowPos(this.Handle, HWND_TOPMOST, 0, 0, 0, 0, TOPMOST_FLAGS);
            mouseMoveTimer          = new Timer();
            mouseMoveTimer.Interval = 10;
            mouseMoveTimer.Tick    += new EventHandler(MouseMoveTimer_Tick);
            mouseMoveTimer.Start();
            MouseHook.Start();
            MouseHook.MouseAction += new EventHandler(Event);
        }
Ejemplo n.º 2
0
 private void Stop(object sender, EventArgs e)
 {
     MouseHook.Stop();
 }