mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2008
Posts: 329
A
AWEstun Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: May 2008
Posts: 329
How do I get a timer to perform more than one task, for example:

/timer[pummel] 0 2 { join #chan | splay busy.wav }

The above doesn't seem to work correctly. While it does try to continuously (pummel) join the channel, it only plays the busy sound ONE time while it's trying to pummel into the channel. Shouldn't the timer be playing the busy sound each time it tries to join the channel?


I registered; you should too.
Joined: Jul 2006
Posts: 4,149
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
You can use [ $(|) ] to separate the different command, but you should use an alias to do this since this method isn't appreciated

Code:
//.timer 1 1 echo 5 -a $nick($active,1) [ $(|) ] echo 4 -a $nick($active,1)
is the same as :
Code:
//.timer 1 1 your_alias
alias your_alias {
echo 5 -a $nick($active,1) 
echo 4 -a $nick($active,1)
}


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: May 2008
Posts: 329
A
AWEstun Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: May 2008
Posts: 329
Thanks, I'd wondered if using an alias would work.


I registered; you should too.
Joined: Jul 2006
Posts: 4,149
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
Just to be more precise, in a timer/scid/scon command, $(|) instead of [ $(|,0) ] works. [ $(|,0) ] can be used in other case, like $findfile/$finddir


#mircscripting @ irc.swiftirc.net == the best mIRC help channel

Link Copied to Clipboard