/// <summary> /// main overriden method used to perform this script event /// </summary> public override void DoEvent() { // update the status label on the main form // Status = $"Mouse move: {CoordsToMoveTo.ToString()}."; MoveMouse(CoordsToMoveTo); }
/// <summary> /// main overriden method used to perform this script event /// </summary> public override void DoEvent() { // update the status label on the main form // Status = $"Move mouse to {CoordsToMoveTo.ToString()} on window: {WindowTitle}."; // bring the window associated with this event to the front // BringEventWindowToFront(this); POINT NewClickPoint = new POINT( GetWindowPosition(WindowToClickHandle).Left + CoordsToMoveTo.X, GetWindowPosition(WindowToClickHandle).Top + CoordsToMoveTo.Y); MoveMouse(NewClickPoint); }