with the alias, $idle is evaluated when the timer starts, and is 0 because you probably just wrote a line to start that alias. try using $!idle in the alias.
This forum is for scripters, and for developers of applications that work with mIRC. Feel free to post your ideas, ask questions, and discuss scripting issues here.