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; }
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; }
//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); }
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; }