From WikiChip
Difference between revisions of "mirc/identifiers/$inmidi"
< mirc‎ | identifiers

m
m
Line 1: Line 1:
 
'''Note:''' This command is also a part of the [[Playing music - mIRC|playing music]] section.
 
'''Note:''' This command is also a part of the [[Playing music - mIRC|playing music]] section.
 +
  
 
'''$inmidi''' returns whether or not a midi file is currently playing.
 
'''$inmidi''' returns whether or not a midi file is currently playing.
Line 13: Line 14:
 
<span style="display: inline-block; width: 70px;">'''length'''</span>Returns the full length of the currently playing midi file.
 
<span style="display: inline-block; width: 70px;">'''length'''</span>Returns the full length of the currently playing midi file.
  
<span style="display: inline-block; width: 70px;">'''pause'''</span>Pauses the currently playing midi file.
+
<span style="display: inline-block; width: 70px;">'''pause'''</span>Returns ''$true'' if the currently playing midi file is paused, else it returns ''$false''.
  
 
== Example ==
 
== Example ==

Revision as of 17:01, 23 June 2014

Note: This command is also a part of the playing music section.


$inmidi returns whether or not a midi file is currently playing.

Synopsis

$inmidi[.property]

Properties

fnameReturns the file name of the currently playing midi file.

posReturns the current position that the player is playing the midi at.

lengthReturns the full length of the currently playing midi file.

pauseReturns $true if the currently playing midi file is paused, else it returns $false.

Example

Echo whether or not a midi file is playing to the active window

//echo -a $inmidi

Compatibility

Added: mIRC v5.0

Added On: 02/04/97

See Also

/splay

/wavplay Deprecated

/vol

$insong

$inwave

$sound

$vol