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

m
Line 1: Line 1:
{{mirc title|$toolbar identifier}}'''$toolbar''' returns {{mirc|$true}} if the toolbar is enabled in mIRC, {{mirc|$false}} otherwise.
+
{{mirc title|$toolbar identifier}}'''$toolbar''' returns {{mirc|$true}} if the toolbar is enabled in mIRC, {{mirc|$false}} otherwise. It also returns information about the items on the toolbar.
 
 
 
 
 
== Synopsis ==
 
== Synopsis ==
 
<pre>$toolbar</pre>
 
<pre>$toolbar</pre>
 +
<pre>$toolbar(name|N)</pre>
  
 
== Parameters ==
 
== Parameters ==
None
+
None<br />
 +
or<br />
 +
Name|N = Name or Nth item in toolbar about which to return information. 0 = total number of toolbar items.
  
 
== Properties ==
 
== Properties ==
None
+
* .name
 +
* .type
 +
* .tip
 +
* .alias
 +
* .popup
 +
* .width
 +
* .height
 +
* .wide
 +
* .enabled
 +
* .visible
 +
* .checked
 +
* .alpha
  
 
== Example ==
 
== Example ==
<source lang="mIRC">//echo -a $toolbar</source>
+
<source lang="mIRC">
 +
//echo -a the toolbar is $iif($toolbar,On,Off) and contains $toolbar(0) items
 +
//var %i 0 | while (%i < $toolbar(0)) { echo -a %i : $toolbar(%i).name : $toolbar(%i).tip | inc %i }
 +
</source>
  
 
== Compatibility ==
 
== Compatibility ==
 
{{mIRC compatibility|6.32}}
 
{{mIRC compatibility|6.32}}
 
 
== See also ==
 
== See also ==
 
* {{mIRC|$menubar}}
 
* {{mIRC|$menubar}}
Line 22: Line 36:
 
* {{mIRC|$treebar}}
 
* {{mIRC|$treebar}}
 
* {{mIRC|/toolbar}}
 
* {{mIRC|/toolbar}}
{{mIRC identifier list}}
 
  
 
[[Category:mIRC identifiers|toolbar]]
 
[[Category:mIRC identifiers|toolbar]]

Revision as of 03:39, 25 December 2018

$toolbar returns $true if the toolbar is enabled in mIRC, $false otherwise. It also returns information about the items on the toolbar.

Synopsis

$toolbar
$toolbar(name|N)

Parameters

None
or
Name|N = Name or Nth item in toolbar about which to return information. 0 = total number of toolbar items.

Properties

  • .name
  • .type
  • .tip
  • .alias
  • .popup
  • .width
  • .height
  • .wide
  • .enabled
  • .visible
  • .checked
  • .alpha

Example

//echo -a the toolbar is $iif($toolbar,On,Off) and contains $toolbar(0) items
//var %i 0 | while (%i < $toolbar(0)) { echo -a %i : $toolbar(%i).name : $toolbar(%i).tip | inc %i }

Compatibility

Added: mIRC v6.32
Added on: 21 May 2008
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.

See also