private static IntPtr HookCallback( int nCode, IntPtr wParam, IntPtr lParam) { Formcap.handleKeyboardInput(nCode, wParam, lParam); return(CallNextHookEx(_hookID, nCode, wParam, lParam)); }
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)); }
private void button1_Click(object sender, EventArgs e) { Formcap cap = new Formcap(); cap.Show(); }