mIRC Home    About    Download    Register    News    Help

Print Thread
#208894 30/01/09 10:21 PM
Joined: Sep 2006
Posts: 3
P
Pardner Offline OP
Self-satisified door
OP Offline
Self-satisified door
P
Joined: Sep 2006
Posts: 3
Sorry for the simple question,but I would like to execute a command letting me know that the text file has been completely been displayed:
Code:
/play $nick textfile.txt
/splay bell.wav
/msg $nick ***End of Log***

If I use the above code, it splays the sound, sends them the "***End of Log***" message, then starts to play the textfile to them frown Any way I can wait for the play command to stop before starting the next commands?

Joined: Jul 2006
Posts: 4,157
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,157
/help on playend wink


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Sep 2006
Posts: 3
P
Pardner Offline OP
Self-satisified door
OP Offline
Self-satisified door
P
Joined: Sep 2006
Posts: 3
isearch the help files and there isnt anything on "playend" even doing a search of "play end" didnt bring up anything useful.I know about the -q switch for the /splay, but it doesnt work for /play.

Joined: Jul 2006
Posts: 4,157
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,157
What ?
Originally Posted By: /help on playend
on PLAYEND

The on PLAYEND event triggers when the /play command has finished playing a file.

Format: on <level>:PLAYEND:<commands>
Example: on 1:PLAYEND:/echo The play command has finished playing $filename
Note: Text files can be played ie. sent to users or channels on IRC by using the /play command



#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Sep 2006
Posts: 3
P
Pardner Offline OP
Self-satisified door
OP Offline
Self-satisified door
P
Joined: Sep 2006
Posts: 3
blush indeed, you are correct. Thank-you very much!! blush


Link Copied to Clipboard