SRL Archive - OSR Help

need help with ClickContinueEx


westkevin12

2013-05-12 00:24:38

trying to add if ClickContinueEx then goto SmeltAgain so that my script won't freeze in an endless loop when I lvl up.
but idk How to Use ClickContinueEx I'm getting a Type missmatch error can anyone help?

 procedure Smelt;
label SmeltAgain;
begin
SmeltAgain:
findtheFurnace(x, y);
while (ismoving) do
wait(200);
SmeltIron;
ClickContinueEx(Mouse_Left,300);
if (ClickContinueEx(Mouse_Left,300) = True) then goto SmeltAgain;
end;

Itankbots

2013-05-12 00:37:02

Change the ClickContinueEx(True,True); Or false,false depending if you want it to use keyboard to hit spacebar, or click the button, and if you want it to wait.

westkevin12

2013-05-12 00:38:29

oooh thanks mate! is true click with the mouse or spacebar?

I changed it to this now.
procedure Smelt;
label SmeltAgain;
begin
SmeltAgain:
findtheFurnace(x, y);
while (ismoving) do
wait(200);
SmeltIron;
ClickContinueEx(True,True);
if (ClickContinueEx(True,True) = True) then goto SmeltAgain;
end;
and when i leveled up it still got stuck in an endless loop just sitting there. wouldn't click coninue or goto label

Sjoe

2013-05-12 02:32:09

From: westkevin12
oooh thanks mate! is true click with the mouse or spacebar?

I changed it to this now.
procedure Smelt;
label SmeltAgain;
begin
SmeltAgain:
findtheFurnace(x, y);
while (ismoving) do
wait(200);
SmeltIron;
ClickContinueEx(True,True);
if (ClickContinueEx(True,True) = True) then goto SmeltAgain;
end;
and when i leveled up it still got stuck in an endless loop just sitting there. wouldn't click coninue or goto label


Cause you're calling it twice, remove the first ClickContinue.

if (ClickContinueEx(True,True) = True) then goto SmeltAgain;
This will return false since there will not be a second click to continue.

What's wrong with ClickToContinue;

westkevin12

2013-05-12 15:06:50

From: Sjoe
Cause you're calling it twice, remove the first ClickContinue.

if (ClickContinueEx(True,True) = True) then goto SmeltAgain;
This will return false since there will not be a second click to continue.

What's wrong with ClickToContinue;

Thanks, changed it to ClickToContinue and it works now and actually clicks the continue and reclicks furnace! :) ty