**BANNED The Man
2011-02-11 18:17:25
Added HoldMouse to ClickType, just more functionality.
{*******************************************************************************
procedure MouseBoxEx(x1, y1, x2, y2: Integer; Dist,ClickType: Integer);
By: Raymond (Dynamite added HoldMouse)
Description: Does mouse stuff (ClickType), and uses a point that is within Dist from
the closest point between mouse and the box.
*******************************************************************************}
procedure MouseBoxEx(x1, y1, x2, y2: Integer; Dist,ClickType: Integer);
var
PT : TPoint;
begin
GetMousePos(pt.x,pt.y);
PT := RandomPointBoxEx(pt,inttobox(x1,y1,x2,y2),Dist);
case ClickType of
1 : Mouse(pt.x, pt.y, 0, 0, True);
2 : Mouse(pt.x, pt.y, 0, 0, False);
3 : MMouse(pt.x, pt.y, 0, 0);
4 : HoldMouse(pt.x, pt.y, True);
else
srl_Warn('MouseBox', 'ClickType is NOT a valid number!', warn_AllVersions);
end;
end;