GetMousePos

From SCAR Divi Manual
Jump to: navigation, search

Definition

procedure GetMousePos(var x, y: Integer);

Availability

SCAR Divi 3.00 > Current

Description

This function gets the cursor position relative to the selected client window and returns it in x and y.

Example

var
  x, y: Integer;

begin
  GetMousePos(x, y);
  WriteLn('The current Mouse position is ' + IntToStr(x) + ', ' + IntToStr(y));
end.

See Also