digitalninja
2012-08-28 01:49:51
Hi Folks,
I am almost done with my 1st script. I have spent countless hours watching tutorials and reading up on common errors. I cant seem to figure this out. I have gotten the script to open SIMBA, login, bank, deposit, close, and then run the code below. After its done I expected it to loop back to bank but it instead just logs out. I think I have screwed up a failsafe which is triggering the early logout. Can someone see what I did wrong and how I can just get it to loop again please?
I get the feeling the error is happening on the last part
But all I see here is a delay and random finder :confused:
Thanks!
Digital Ninja
I am almost done with my 1st script. I have spent countless hours watching tutorials and reading up on common errors. I cant seem to figure this out. I have gotten the script to open SIMBA, login, bank, deposit, close, and then run the code below. After its done I expected it to loop back to bank but it instead just logs out. I think I have screwed up a failsafe which is triggering the early logout. Can someone see what I did wrong and how I can just get it to loop again please?
procedure Rind;
var
FailSafe : Integer;
begin
FailSafe := 0;
InvMouse(1, 1);
ClickMouse2(True);
Wait(RandomRange(800, 900));
MMouse((MCX1+MCX2)/2 ,(MCY1+MCY2)/2 , 5, 5);
while not(IsUpText('All')) do
begin
Wait(RandomRange(20, 40));
Inc(FailSafe);
if (FailSafe > 50) then
begin
Writeln('Couldn''t find the make all button!');
FindNormalRandoms;
Inc(SuperFailSafe);
if (SuperFailSafe > 2) then
Rind;
Exit;
end;
end;
Writeln(inttostr(failsafe));
ClickMouse2(True);
repeat
wait(100);
Inc(x);
until(x > WaitTimer);
AntiBan;
x :=0;
FindNormalRandoms;
SuperFailSafe := 0;
end;
I get the feeling the error is happening on the last part
Writeln(inttostr(failsafe));
ClickMouse2(True);
repeat
wait(100);
Inc(x);
until(x > WaitTimer);
AntiBan;
x :=0;
FindNormalRandoms;
SuperFailSafe := 0;
end;
But all I see here is a delay and random finder :confused:
Thanks!
Digital Ninja