SRL Archive - OSR Help

Wait until we find a color?


Saltyspoons

2012-06-06 18:18:45

How can I make Simba wait until it finds a screen that will appear?

I have tried taking a color from the screen that appears, and doing

while not FindColor(etc.) do
wait(0);

That is obviously wrong.. so I am thinking there is a function I don't know of.. or a simple loop..
Any help is appreciated

YoHoJo

2012-06-06 18:20:41

Look in timing.simba
They have stuff like
(*
WaitColor
~~~~~~~~~

.. code-block:: pascal

function WaitColor(x, y, Color, Tol, MaxTime: integer): Boolean;

Waits for a color at (x, y) with tolerance Tol, returns true if found

.. note::

by Rasta Magician, fixed by TRiLeZ

Example:

.. code-block:: pascal

*)
function WaitColor(X, Y, Color, Tol, MaxTime: Integer): Boolean;

Saltyspoons

2012-06-06 18:22:55

From: YoHoJo
Look in timing.simba
They have stuff like



That's exactly what I was looking for, thanks