public void StartRecording() { recordScript = new StringBuilder(); hook.RegisterKeyHook(); hook.RegisterMouseHook(); delayWatch.Start(); }
private static void HookSetting(UserInputHook hook) { hook.MouseHook = LoggingMouseMacro; hook.KeyHook = LoggingKeyMacro; hook.HookErrorProc = CommonUtil.HandleException; hook.RegisterKeyHook(); hook.RegisterMouseHook(); }