Implementing a Sleep/Wait/Delay Functionality

Hi all

I need a short Delay in a loop in my code,
and after searching google for such a thing in Kodular,
is the answer really that there isn’t such a functionality built in,
and you must use an Extension for that?

Or maybe things have changed in the time that passed between those google results..

Thank you

Use a clock component and its Timer event
Taifun

Thank you Taifun,
was not aware of that Clock component.

I thought about it now,
and it seems that using it for my current purpose, would make the code a bit messier,
since it will split the code too 2 different procedures.

So I will use the Clock component in other places, but just not specifically here.

BTW, really nice that it has a TimerAlwaysFires property
(When true, will fire even when application is not showing on the screen)

Regarding my specific need here,
maybe there’s a workaround for a single command that performs a Wait:

Is there maybe another command, that is not a Wait command, but a command that does something,
and that thing takes 1 or 2 second?

That way, I can use that command whenever I need a short delay,
ignoring the other (original) result that it provides,
and benefitting only from the delay that occurs there.

Anyone has an idea?

Why you can’t wait

usually you do it like this

you probably are interested in [Free] Async Procedures | Extension

Taifun