Пример #1
0
        public void StopInNewThread(object p)
        {
            _hook.KeyDown -= _hook_KeyDown;
            _hook.KeyUp   -= _hook_KeyUp;

            _hook.Stop(false, true, false);
        }
Пример #2
0
        public void Stop()
        {
            _hook.OnMouseActivity -= new CraftSynth.BuildingBlocks.WindowsNT.UserActivityHookNamespace.UserActivityHook.MouseEventHandlerFull(_hook_OnMouseActivity);

            _hook.KeyDown -= new System.Windows.Forms.KeyEventHandler(_hook_KeyDown);
            _hook.KeyUp   -= new System.Windows.Forms.KeyEventHandler(_hook_KeyUp);

            _hook.Stop(true, true, false);
        }
Пример #3
0
        private void StopHook()
        {
            try
            {
                _hook.KeyDown         -= _hook_KeyDown;
                _hook.KeyUp           -= _hook_KeyUp;
                _hook.OnMouseActivity -= _hook_OnMouseActivity;
            }
            catch
            {
            }

            try
            {
                _hook.Stop(true, true, false);
            }
            catch
            {
            }
        }