ClickMouseEx

From SCAR Divi Manual
Revision as of 12:01, 8 September 2012 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> procedure ClickMouseEx(const X, Y: Integer; const Btn: TMouseButton; const Interval: Integer); </source> ==Availability== SC...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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