it's hard to explain, in english it's more difficulte !
my second idea is in fact an while but it runs always one time, and this fonction is to make a code in multi-lines:
if you try to perform
%1
%2
%3
%4
where...
%1 = while (%1 < 10) {
%2 = inc %1
%3 = did -a dialog 5 $gettok(%2,%1,32)
%4 = }
your code is not equal to
while (%1 < 10) {
inc %1
did -a dialog 5 $gettok(%2,%1,32)
}
but equal to:
/while (%1 < 10) {
/inc %1
/did -a dialog 5 $gettok(%2,%1,32)
/}
and here, mIRC try to /while (%1 < 10) { and freez mIRC
after it /inc %1, ... and /} it's not a good command
and this while don't run, like a true while, but mIRC run line-after-line the script.
The alternative is, write code in file, load -rs file, and run /start-command
i hope you see now, i can't explain more ! i must to learn english before

me third idea is same /perfom my second idea, but fixed to a /timer.
With a timer, you can run ONE command only (the alternative is make a alias call more of one command), but my /timer with brackets save (after evaluate or not ?) all commands in their brackets, and when the /timer run, it runs saved commands.
ps: /sleep run, thanks