Rich
2009-09-30 22:58:33
Noticed that Naum's MouseCircle didn't have left or right click so here it is:
Also, MMouseCircle:
Also, a change to ClickNorth due to MouseCircle. This would only work if MouseCircle was changed to the above.
EDIT:
Another two:
Richard.
{*******************************************************************************
procedure MouseCircle(MidX, MidY, Radius: Integer; Left : Boolean);
By: NaumanAkhlaQ, edited by R1ch
Description: Clicks a random point in the circle of midpoint
'MidX', 'MidY' and with a radius of 'Radius'. Clicks left/right
depending on Left.
*******************************************************************************}
procedure MouseCircle(MidX, MidY, Radius: Integer; Left : Boolean)
begin
MMouseCircle(MidX, MidY, Radius);
Wait(30 + Random(10));
GetMousePos(MidX, MidY);
Mouse(MidX, MidY, 0, 0, Left);
end;Also, MMouseCircle:
{*******************************************************************************
procedure MMouseCircle(MidX, MidY, Radius: Integer);
By: From MouseCircle by NaumanAklaQ. This by R1ch
Description: Moves a random point in the circle of midpoint
'MidX', 'MidY' and with a radius of 'Radius'.
*******************************************************************************}
procedure MMouseCircle(MidX, MidY, Radius: Integer);
var
TP: TPoint;
Control : array [0..1] of Integer;
begin
Control[0] := Random(Radius) + 1;
Control[1] := Random(361);
TP := Point(Round(Control[0] * Sin(Control[1] * Pi / 180)) + MidX,
Round(-Control[0] * Cos(Control[1] * Pi / 180)) + MidY);
MMouse(TP.x, TP.y, 0, 0);
end;Also, a change to ClickNorth due to MouseCircle. This would only work if MouseCircle was changed to the above.
{*******************************************************************************
procedure ClickNorth(AngleHigh : boolean);
By: R1ch
Description: Clicks the compass to make it perfect North. Will set angle at
highest or lowest depending on AngleHigh
*******************************************************************************}
procedure ClickNorth(AngleHigh: boolean);
begin
if Random(4) = 1 then
begin
MouseCircle(542, 24, 15, False);
WaitOptionMulti(['ace', 'orth'], 1200);
end else
MouseCircle(542, 24, 15, True);
Wait(RandomRange(500, 1250));
SetAngle(AngleHigh);
end;
end;EDIT:
Another two:
{*******************************************************************************
function IsLoginStill : Boolean;
By: R1ch
Description: Returns true if the login page is still
*******************************************************************************}
function IsLoginStill : Boolean;
begin
if LoggedIn then Exit;
Result:= GetColor(16, 487) = 2302956;
end;
{*******************************************************************************
function MakeLoginStill(Still : Boolean) : Boolean;
By: R1ch
Description: Makes login page still or not, depending on Still
*******************************************************************************}
function MakeLoginStill(Still : Boolean) : Boolean;
begin
if LoggedIn then Exit;
if not (IsLoginStill xor Still) then
Mouse(16, 487, 7, 7, True);
Result:= True;
end;Richard.