Ejemplo n.º 1
0
 private void hooksOnOperationPosted(object sender, DispatcherHookEventArgs dispatcherHookEventArgs)
 {
     if (m_Timer != null)
     {
         m_Timer.Stop();
     }
 }
 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);
     });
 }
Ejemplo n.º 3
0
 private void HooksOperationPosted(object sender, DispatcherHookEventArgs e)
 {
 }
Ejemplo n.º 4
0
 private void HooksOperationPriorityChanged(object sender, DispatcherHookEventArgs e)
 {
 }