Exemple #1
0
 public void Rec(bool recFlag)
 {
     if (recFlag)
     {
         Utils utils = new Utils();
         dispatcher = utils.BuildDispatcher("WORKER");
         dispatcher.BeginInvoke(DispatcherPriority.Background, new System.Action(() =>
         {
             Record();
         }));
     }
     else
     {
         dispatcher.BeginInvokeShutdown(DispatcherPriority.Background);
         events.KeyDown -= Events_KeyDown;
         events.KeyUp   -= Events_KeyUp;
         dispatcher      = null;
         events          = null;
         LocatedObjects.objectsDB.Clear();
     }
 }
 public void StartCapture()
 {
     mouseEvents = MouseHook.Hook.GlobalEvents();
     mouseEvents.MouseDownExt += MouseEvents_MouseDownExt;
 }
Exemple #3
0
 private void Record()
 {
     events          = GMA.Hook.GlobalEvents();
     events.KeyDown += Events_KeyDown;
     events.KeyUp   += Events_KeyUp;
 }