Beispiel #1
0
        private void StartHook()
        {
            this._hook = new CraftSynth.BuildingBlocks.WindowsNT.UserActivityHookNamespace.UserActivityHook(true, true);

            this._hook.KeyDown         += _hook_KeyDown;
            this._hook.KeyUp           += _hook_KeyUp;
            this._hook.OnMouseActivity += _hook_OnMouseActivity;
        }
Beispiel #2
0
        public void Start()
        {
            //this._hook.Start();
            this._hook = new CraftSynth.BuildingBlocks.WindowsNT.UserActivityHookNamespace.UserActivityHook(false, true);
            //this._targetWindowHandler = (int)CraftSynth.BuildingBlocks.WindowsNT.Misc.GetWindowByCaption("ENSO+ Selection Listener");

            this._hook.KeyDown += _hook_KeyDown;
            this._hook.KeyUp   += _hook_KeyUp;
        }
Beispiel #3
0
        //private System.Threading.Timer _pasteDelayTimer;
        //bool _pasteDelayActive;
        #endregion

        #region Properties
        #endregion

        #region Public Methods
        public void Start()
        {
            //this._hook.Start();
            this._hook = new CraftSynth.BuildingBlocks.WindowsNT.UserActivityHookNamespace.UserActivityHook(true, true);
            this._targetWindowHandler = (int)CraftSynth.BuildingBlocks.WindowsNT.Misc.GetWindowByCaption("ENSO+ Selection Listener");

            this._hook.OnMouseActivity += new CraftSynth.BuildingBlocks.WindowsNT.UserActivityHookNamespace.UserActivityHook.MouseEventHandlerFull(this._hook_OnMouseActivity);

            this._hook.KeyDown += new System.Windows.Forms.KeyEventHandler(_hook_KeyDown);
            this._hook.KeyUp   += new System.Windows.Forms.KeyEventHandler(_hook_KeyUp);
        }
Beispiel #4
0
        public Listener(List <Keys> pasteKeyCombination)
        {
            this._hook = new CraftSynth.BuildingBlocks.WindowsNT.UserActivityHookNamespace.UserActivityHook(false, false);
            this._leftMouseDoubleClickTimer = new System.Threading.Timer(LeftMouseDoubleClickTimer_Tick, null, Timeout.Infinite, Timeout.Infinite);

            //this._pasteDelayTimer = new System.Threading.Timer(PasteDelayTimer_Tick, null, Timeout.Infinite, Timeout.Infinite);
            this._pasteKeyCombination        = pasteKeyCombination;
            this._pressedKeys                = new List <int>();
            this._buttonLeftPressed          = false;
            this._dragStarted                = false;
            this._chanceForDoubleClickActive = false;
        }