Esempio n. 1
0
 protected virtual void OnKeyHookEvent(KeyHookEventArgs e)
 {
     if (KeyHookEvent != null)
     {
         this.KeyHookEvent(this, e);
     }
 }
Esempio n. 2
0
 private void m_keyHook_KeyHookEvent(object sender, KeyHookEventArgs e)
 {
     if (e.KeyCode == (int)Keys.PrintScreen && m_bCaptureCur)
     {
         if (DateTime.Now.Subtract(m_dtLastDownPrt).TotalMilliseconds > 500)
         {
             DevCapture.Win32.DrawCurToScreen(MousePosition);       //如果按下不松开会一直触发
         }
         m_dtLastDownPrt = DateTime.Now;
     }
 }