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; }
public static void StartInput() { DeviceHook.InputEvent += DeviceInput; DeviceHook.StartHooks(); }