ClickMouseEx

From SCAR Divi Manual
Jump to: navigation, search

Definition

procedure ClickMouseEx(const X, Y: Integer; const Btn: TMouseButton; const Interval: Integer);

Availability

SCAR Divi 3.35 > Current

Description

Generates a mouse click at the specified coordinate (X, Y) relative to the active client window. The TMouseBtn Btn indicates what mouse button has to be used. Interval determines the time (in ms) the function waits between pressing and releasing the mouse button. In the event that the current cursor position does not equal that of the given coordinates, the function will call SetMousePos to set the cursor position to the given coordinate.

Example

begin
  ClickMouseEx(500, 500, mbRight, 50 + Random(20));
end.

See Also