NCDS
2009-06-29 08:43:22
I had assumed it was posted before but when I looked I didn't see it anywhere soo…
I just use it to eliminate the
All I added is an extra parameter to check the uptext before clicking.
Out of curiosity..do you find this useful?
{*******************************************************************************
procedure MouseEx(mousex, mousey, ranx, rany: Integer; UpText: String; left: Boolean);
By: Mutant Squirrle, hy71194, and NCDS
Description: Moves mouse, Checks for UpText, Then Click's.
*******************************************************************************}
procedure MouseEx(mousex, mousey, ranx, rany: Integer; UpText: String; left: Boolean);
var
a, b, c: Integer;
begin
MMouse(mousex, mousey, ranx, rany);
Wait(60 + Random(30));
if Pos(UpText, RS_GetUpText) > 0 then
begin
GetMousePos(b, c);
HoldMouse(b, c, left);
repeat
Wait(20 + Random(30));
a := a + 1;
until (a > 4);
GetMousePos(b, c);
ReleaseMouse(b, c, left);
Wait(100 + Random(100));
end;
end;
I just use it to eliminate the
MMouse();
if IsUpText() then
Mouse();
that every script has.All I added is an extra parameter to check the uptext before clicking.
Out of curiosity..do you find this useful?