Im looking for a function that does that, because AFAIK, I cant use a Tpoint in Mouse(x, y, rx, ry, button). Searching in the functionlist, I came up with nothing...
Im looking for a function that does that, because AFAIK, I cant use a Tpoint in Mouse(x, y, rx, ry, button). Searching in the functionlist, I came up with nothing...
Thx Euphemism and Vinyl for the awesome siggy and avatar!
You can access the x and y inside the point.
Say your point is called myPoint, you can get the x inside it like this:
Simba Code:myPoint.X
So, for your mouse you could do this:
Simba Code:Mouse(myPoint.X, myPoint.Y, rx, ry, button)
My scripts:
Advanced Barb Agility Course(outdated), MonkeyThieverV0.11, MahoganyTableV0.4(outdated)
Questions? I bet that for 98% of those, you'll find answer HERE
Tpoint.x,TPoint.y
There ya go
Thanks guys! Forgot I could do that!
Thx Euphemism and Vinyl for the awesome siggy and avatar!
yeh u can use tpoint in mouse lol haha yeah juss gotta declare ....
SCAR Code:point=point.x and point.y
If you want a procedure that means you can store the values if you wish to use them at a later point:
Simba Code:procedure TPointToXY(TP: TPoint; var x,y: integer);
begin
x := TP.x;
y := TP.y;
end;
There are currently 1 users browsing this thread. (0 members and 1 guests)