I seem to be having problems with WaitFindColor and FindColorTolerance when scripting for 07RS. I don't think these functions are detecting anything. My script compiles and runs, but I don't think these functions are doing what they are supposed to.

Basically I'm trying to use one of these functions to do stuff until a certain color is found within that region. That way the script knows to move onto the next step. (I want the repeat to continue until the cooking screen is up after the raw food has been used on fire/range).

For example.

Simba Code:
repeat
  begin
    DoStuff;
    DoOtherStuff;
  end;
until FindColorTolerance(x,y, 13160143, 371, 400, 379, 409, 10);
DoMoreStuff;

I seem to have great success when using p07 include functions for many different things. Any ideas on how to complete my end goal mentioned above would be great. Thanks