コード例 #1
0
 private void hooksOnOperationPosted(object sender, DispatcherHookEventArgs dispatcherHookEventArgs)
 {
     if (m_Timer != null)
     {
         m_Timer.Stop();
     }
 }
コード例 #2
0
 private void HooksOnOperationCompleted(object sender, DispatcherHookEventArgs dispatcherHookEventArgs)
 {
     if (dispatcherHookEventArgs.Operation != _action)
     {
         return;
     }
     _action.Task.ContinueWith((t) =>
     {
         Rectangle rect = new Rectangle(0, 0, _width, _height);
         Bitmap bmp     = new Bitmap(rect.Width, rect.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb);
         Graphics g     = Graphics.FromImage(bmp);
         g.CopyFromScreen(rect.Left, rect.Top, 0, 0, bmp.Size, CopyPixelOperation.SourceCopy);
         bmp.Save("help" + DateTime.Now.Ticks + ".jpg", ImageFormat.Jpeg);
     });
 }
コード例 #3
0
 private void HooksOperationPosted(object sender, DispatcherHookEventArgs e)
 {
 }
コード例 #4
0
 private void HooksOperationPriorityChanged(object sender, DispatcherHookEventArgs e)
 {
 }