Esempio n. 1
0
        private static IntPtr HookCallback(
            int nCode, IntPtr wParam, IntPtr lParam)
        {
            Formcap.handleKeyboardInput(nCode, wParam, lParam);

            return(CallNextHookEx(_hookID, nCode, wParam, lParam));
        }
Esempio n. 2
0
 private static IntPtr HookCallback(
     int nCode, IntPtr wParam, IntPtr lParam)
 {
     if (nCode >= 0 && MouseMessages.WM_LBUTTONDOWN == (MouseMessages)wParam)
     {
         Formcap.handleLeftClick(lParam);
     }
     if (nCode >= 0 && MouseMessages.WM_MOUSEWHEEL == (MouseMessages)wParam)
     {
         Formcap.handleScroll(lParam);
     }
     return(CallNextHookEx(_hookID, nCode, wParam, lParam));
 }
Esempio n. 3
0
 private void button1_Click(object sender, EventArgs e)
 {
     Formcap cap = new Formcap();
     cap.Show();
 }
Esempio n. 4
0
        private void button1_Click(object sender, EventArgs e)
        {
            Formcap cap = new Formcap();

            cap.Show();
        }