//----------------------------------------------------------------------------------------------------------- // External event handlers //----------------------------------------------------------------------------------------------------------- /// <summary> /// Mouse event handler /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Event_mouse(object sender, EventArgs e) { // Do not run if user has not pressed run button if (!_config.FlagRun) { return; } // Send Ctrl+C on mouse click KeyEmulator.SendCtrlC(); }
//----------------------------------------------------------------------------------------------------------- // External event handlers //----------------------------------------------------------------------------------------------------------- /// <summary> /// Mouse event handler /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Event_mouse() { // Do not run if user has not pressed run button if (!_config.FlagRun) { return; } _checkActive = true; Task.Delay(100).ContinueWith(t => _checkActive = false); // Send Ctrl+C on mouse click KeyEmulator.SendCtrlC(); }
/* * Major event handlers */ /// <summary> /// Mouse event handler /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Event_mouse(object sender, EventArgs e) { // Do not run if user has not pressed run button if (!Settings.flag_run || !Settings.flag_runRightClick) { return; } // Only run if "Path of Exile" is the main focused window if (WindowDiscovery.GetActiveWindowTitle() != Settings.activeWindowTitle) { return; } // Send Ctrl+C on mouse click KeyEmulator.SendCtrlC(); }