From WikiChip
Difference between revisions of "mirc/on events/on midiend"
< mirc‎ | on events

m
m
Line 12: Line 12:
  
 
== Examples ==
 
== Examples ==
Echo to the active window when a midi file has just ended, including its filename:
+
Echo to the active window when the sound file has ended, including its filename:
<source lang="mIRC">ON *:MP3END:echo -a $nopath($filename) has ended</source>
+
<source lang="mIRC">ON *:MIDIEND:echo -a $nopath($filename) has ended</source>
  
 
The example above will output results similar to the contents below:
 
The example above will output results similar to the contents below:

Revision as of 19:51, 25 June 2014

The ON MIDIEND event triggers whenever a midi file has finished playing via the /splay command.

This event fills the $filename identifier, which will be set to the complete location and filename of the sound file that just ended.

Synopsis

ON <level>:MIDIEND:<commands>

Parameters

<level>The level for the event to trigger.

<commands>The commands to be performed when the event listener's criteria is met.

Examples

Echo to the active window when the sound file has ended, including its filename:

ON *:MIDIEND:echo -a $nopath($filename) has ended

The example above will output results similar to the contents below:

Chopin - Four Scherzos.midi has ended

Compatibility

Added: mIRC v5.0

Added On: 02/04/97

See Also