예제 #1
0
 public PrimaryHook(IInputHook targetHook)
 {
     _hookProcedureFunction = HookProcedure; // So the garbage collector does not free the procedure.
     _targetHook            = targetHook;
     Env.App.Run           += Register;
     Env.App.Exiting       += _targetHook.Reset;
     Env.App.Unhook        += () =>
     {
         _hookHandle?.Dispose();
         _mouseHookHandle?.Dispose();
     };
 }
예제 #2
0
 public InputRelay(IInputHook targetHook)
 {
     _targetHook = targetHook;
     _enabled    = true;
 }
예제 #3
0
 public TestInjector(IInputHook targetHook)
 {
     _targetHook = targetHook;
 }
예제 #4
0
 public TestPrimaryHook(IInputHook targetHook)
 {
     _targetHook = targetHook;
 }