SRL Archive - OSR Help

GetMousePos Question


benisbeast1

2013-07-15 13:24:20

Is there any way I can make the script get a mouse position in one procedure and then include it into another procedure?

Brandon

2013-07-15 13:29:16

From: benisbeast1
Is there any way I can make the script get a mouse position in one procedure and then include it into another procedure?


There is a function called GetMousePos that takes two references..


Usage:


var
X, Y: Integer;
begin
GetMousePos(X, Y);
writeln(Point(X, Y));
end.

Ashaman88

2013-07-15 13:49:47

Store the x and y in a global variable