Felix_Teh_Cat Posted March 20, 2013 Share Posted March 20, 2013 Is there a command that can cancel a procedure and start a new one via a color detection? I am writing 24/7 scripts that go for months on end and saving 30 second's every 5 minutes would speed things up dramatically and improve efficiency. Is there a command that can to do this? Quote Link to comment Share on other sites More sharing options...
Wanted Posted March 20, 2013 Share Posted March 20, 2013 Of course. But the way you're wording it is confusing. Quote Link to comment Share on other sites More sharing options...
Felix_Teh_Cat Posted March 20, 2013 Author Share Posted March 20, 2013 (edited) Of course. But the way you're wording it is confusing. Sorry =/ I'll make it simpler. This isn't a proper procedure, I do know, But Here's what I mean. Procedure Some_Random_Procedure; Begin Repeat Wait(1000) Until (Findcolor(x,y,12963558,510, 380,530, 400)); End; Something that will cancel that procedure If it's stuck in an infinite loop via another color detect. IE if it detect's another color it will cancel that procedure totally and start another. Sorry, I'm self taught and have never had to explain what I need done or ask what I need to do ;D Edited March 20, 2013 by Felix_Teh_Cat Quote Link to comment Share on other sites More sharing options...
Wanted Posted March 20, 2013 Share Posted March 20, 2013 [sCAR]procedure SomeProcedure; begin Blah; BlahBlahBlah; BlahBlah; if GetColor() then begin CallThis; Exit; end; WriteLn('Guess we didn't find that color'); end;[/sCAR] Pretty simple right? Quote Link to comment Share on other sites More sharing options...