Exemple #1
0
 private void ReleaseHook()
 {
     if (!_isHooked)
     {
         return;
     }
     LLMouseHook.UnHook();
     LLKeyboardHook.UnHook();
     ClearHooksFromFile();
     _isHooked = false;
 }
Exemple #2
0
 private void SetHook()
 {
     if (_isHooked)
     {
         return;
     }
     LLMouseHook.Hook();
     LLKeyboardHook.Hook();
     WriteHooksToFile();
     _isHooked = true;
 }
Exemple #3
0
        private void ClearExistingHook()
        {
            long val;

            if (Int64.TryParse(Config.HookPtr1, out val))
            {
                LLMouseHook.UnHook(val);
            }
            if (Int64.TryParse(Config.HookPtr2, out val))
            {
                LLKeyboardHook.UnHook(val);
            }
        }