Quote:
$2- wont equal anything because it is a timered command so a variable or hash table needs to set. Thanx for your help guys.
im now setting the hash table like this:

Have you even read my post clearly? $2- does equal to something in a timered command, just look at what the output of the /timers command was in my post. Your statement would be true if $2- was pasted together to the $!input() instead of letting it have some spaces around it. $!input($2-) will indeed not let the $2- evaluate at the first run, $!input( $2- ) would.

All that hacky code isn't necessary at all. You pass a simple alias name to the timer together with whatever string to it, be it $2- or a var, and in that alias your tokens will be $1- and then you use that in $input or whatever you want.

.timer 1 0 myalias $2-
alias myalias !.echo -q $input($1-,o,blah)

Note that passing tokens to a timer can be harmful in certain situations, but that won't be the case for your purposes.


Gone.