Difference between revisions of "On playend"

From Scriptwiki
Jump to: navigation, search
m (added page)
 
m (added category and see also)
Line 7: Line 7:
  
 
'''Note''' that you cannot halt the "* Playback of 'file.txt' complete" -text with this, you'll need to do /.play to halt the "* Playing 'file.txt' to #channel with 1000ms delay" and "* Playback of 'file.txt' complete".
 
'''Note''' that you cannot halt the "* Playback of 'file.txt' complete" -text with this, you'll need to do /.play to halt the "* Playing 'file.txt' to #channel with 1000ms delay" and "* Playback of 'file.txt' complete".
 +
 +
==See also:==
 +
*[[play|/play]]
 +
*[[$play]]
 +
[[Category:Commands]]

Revision as of 15:14, 22 November 2006

on <level>:PLAYEND:<commands>

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

Example:

on 1:PLAYEND:{ echo -a The play command has finished playing $filename }

Note that you cannot halt the "* Playback of 'file.txt' complete" -text with this, you'll need to do /.play to halt the "* Playing 'file.txt' to #channel with 1000ms delay" and "* Playback of 'file.txt' complete".

See also: