View Full Version : Clicking a Tpoint
benjaa
11-12-2008, 08:00 AM
Is it possible to move mouse to a Tpoint?
I want to hover over the
EquipmentCoords(1); point, how do i do it?
I found the coords in the include if there's no other way
benjaa,
Lee Lok Hin
11-12-2008, 08:27 AM
Tpoints are basically two variables in one.
"Buy one get one phree!"
Anyway, A tpoint is just two integers, to use them, do.
var
T:TPoint
Mouse(T.x,T.y,5,5,false);
Get? To expand a TPoint, do TPoint.x, and TPoint.y
benjaa
11-12-2008, 09:57 AM
Oh sweet, thank so much
so will this work
MMouse(EquipmentCoords(1).x, EquipmentCoords(1).y, 4, 4);
Lee Lok Hin
11-12-2008, 10:59 AM
procedure MoveToEC1;
var
T:TPoint;
begin
T:= EquipmentCoords(1);
MMouse(T.x,T.y,2,2);
end;
If you use it like your way, it'll call EC twice, wchich would slow down your script.
Wizzup?
11-12-2008, 11:08 AM
procedure MoveToEC1;
var
T:TPoint;
begin
T:= EquipmentCoords(1);
MMouse(T.x,T.y,2,2);
end;
If you use it like your way, it'll call EC twice, wchich would slow down your script.
But not notably. ;)
benjaa
11-12-2008, 11:49 AM
Thankyou so much Lee Lok Hin and Wizzup :)
really helpful for my new script
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.