예제 #1
0
 private static IntPtr HookCallback(int nCode, IntPtr wParam, IntPtr lParam)
 {
     if (nCode >= 0 && MouseMessages.WM_LBUTTONUP == (MouseMessages)wParam && (FirstClick == true))
     {
         Form1.BlockInput(true);
         System.Threading.Thread.Sleep(50);
         Form1.BlockInput(false);
     }
     return(CallNextHookEx(_hookID, nCode, wParam, lParam));
 }