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

m (Bot: Fixing links)
m (Bot: Fixing links)
Line 1: Line 1:
The '''$cmdbox''' identifier will return [[$true identifier - mIRC|$true]] if a command or script was initiated via the ''command editbox''. Otherwise, it will return [[$false identifier - mIRC|$false]].
+
The '''$cmdbox''' identifier will return {{mIRC|$true}} if a command or script was initiated via the ''command editbox''. Otherwise, it will return {{mIRC|$false}}.
  
 
== Synopsis ==
 
== Synopsis ==
Line 20: Line 20:
 
<source lang="mIRC">//echo -a $cmdbox</source>
 
<source lang="mIRC">//echo -a $cmdbox</source>
  
Depending on which window you performed this on first, the echo will show either [[$true identifier - mIRC|$true]], or [[$false identifier - mIRC|$false]].
+
Depending on which window you performed this on first, the echo will show either {{mIRC|$true}}, or {{mIRC|$false}}.
  
 
== Compatibility ==
 
== Compatibility ==

Revision as of 19:56, 5 July 2014

The $cmdbox identifier will return $true if a command or script was initiated via the command editbox. Otherwise, it will return $false.

Synopsis

$cmdbox

Parameters

None

Command editbox

The command editbox is actived by typing the following command in any mIRC window:

/editbox -q1

This will enable the secondary command-line, which is the command editbox, in the current window for which this identifier is useful for.

Example

Create a command editbox in the active window:

/editbox -q1

Next, type the following in both editboxes, and hit the Enter key:

//echo -a $cmdbox

Depending on which window you performed this on first, the echo will show either $true, or $false.

Compatibility

Added: mIRC v6.01

Added On: 10/02/2002

See Also

[Expand]
v · d · e mIRC identifier list