Great! Thanks for the help, but with regards to using the DTM to set the TPoints of the TBox how would this work, given that functions like -
Simba Code:
begin
if (FindDTM(HighAlch,x,y,MIX1,MIY1,MIX2,MIY2)) then
end;
Only return two values x and y..
should i perhaps use
Simba Code:
IntToBox(x - 5, y - 5, x + 5, y + 5);
Simba Code:
procedure LetMeAttempt;
var
MyTPA: TPointArray;
B: TBox;
M: TPoint;
begin
if (FindDTM(HighAlch,x,y,MIX1,MIY1,MIX2,MIY2)) then
begin
B := IntToBox(x-5, y-5, x+5, y+5);
MyTPA := TPAFromBox(B);
for i := 0 to High(MyTPA) do
begin
M:= MiddleTPA(MyTPA)
MMouse(M.x,M.y,0,0);
ClickMouse2(True);
Break;
end;
end;