/// <summary> /// Executes the Recording Event. /// How this event is executed depends on the previousMouseButton event. /// If the previousFrameMouseButton was MouseButtons.None, for example, /// but this recording event's mouseButtonClick was a MouseButtons.left, /// then you'd have a Left Mouse Press down event. /// If the opposite were true, then you'd have a Left Mouse Press Up simulation. /// If the Previous was MouseButtons.Left, the this Recording Event was MouseButtons.Left, /// then there'd be no change (to simulate that the mouse button was continually held down). /// </summary> public void Execute(MouseButtons previousFrameMouseButton) { //For now, we just need to move the Cursor to it's current location MouseTool mouseTool = new MouseTool(); mouseTool.MoveMouseCursor(this.mouseLocation); mouseTool.SimulateMouseClick(this.mouseButtonClick, previousFrameMouseButton); }