Esempio n. 1
0
 public ShortcutKeyTools(Form MainForm)
 {
     ParentForm = MainForm;
     if (ParentForm == null)
     {
         ParentForm = MainForm;
     }
     tShortCutKeyDataSource = new ShortcutKeyManageService().GettShortCutKeyList();
     ShowKey();
     HookObj = new DeviceHook();
     HookObj.KeyboardEvent = KeyboardDown;
     HookObj.MouseEvent    = MouseEvent;
 }
Esempio n. 2
0
 public static void StartInput()
 {
     DeviceHook.InputEvent += DeviceInput;
     DeviceHook.StartHooks();
 }