Y Position of top border:
Simba Code:
function getY(tpa:TPointArray):integer;
var
b:Tbox;
begin
b := getTpaBounds(tpa);
result := b.y1;
end;
This function will click within a certain point inside the TPA:
Simba Code:
procedure clickPointInsideTPA(tpa:TPointArray;pnt:TPoint);
var
b:Tbox;
begin
b := getTpaBounds(tpa);
mouse(b.x1 + pnt.x, b.y1 + pnt.y, 0, 0, mouse_left);
end;
So if you wanted to click the top left of the TPA you would do:
Simba Code:
clickPointInsideTPA(tpa, Point(0, 0));
Or 10 points below the top Y
Simba Code:
clickPointInsideTPA(tpa, Point(0, 10));