nero_dante
2015-03-06 06:18:29
Thanks again all for the quik reply and support you guys give and I'm probably going to be bring out quite a few different posts to help me through my beginning scripting days. Hope its okay to all :P
What I'm stuck on n ow, is finding out how to repeat a procedure if it fails. That's the code below. It hovers over the log beam and if it finds the text it clicks, but if it doesn't I want it to repeat the procedure, is there a way of doing that?
What I'm stuck on n ow, is finding out how to repeat a procedure if it fails. That's the code below. It hovers over the log beam and if it finds the text it clicks, but if it doesn't I want it to repeat the procedure, is there a way of doing that?
procedure WalkLogBeam();
var
logBeam: Tbox;
begin
LogBeam := intTobox(286, 50, 293, 180);
mouseBox(LogBeam, MOUSE_MOVE);
if isMouseOverText('alk log bea, log beam') then
fastClick(MOUSE_LEFT)
else begin
writeLn('Can not find Looking again');
WriteLn('Walking over LogBeam');
wait(gaussRangeInt(5600,5800));
end;