From WikiChip
Difference between revisions of "mirc/identifiers/$toolbar"
m (This identifier uses 0/1, not $true/$false.) |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{mirc title|$toolbar | + | {{mirc title|$toolbar identifier}}The '''$toolbar''' identifier returns 1 if the toolbar is enabled in mIRC, 0 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<br /> | |
− | + | or<br /> | |
+ | Name|N = Name or Nth item in toolbar about which to return information. 0 = total number of toolbar items. | ||
== Properties == | == Properties == | ||
− | + | * .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 == | ||
+ | * {{mIRC|$menubar}} | ||
+ | * {{mIRC|$switchbar}} | ||
+ | * {{mIRC|$treebar}} | ||
+ | * {{mIRC|/toolbar}} | ||
− | + | [[Category:mIRC identifiers|toolbar]] | |
− | |||
− | |||
− | |||
− | [[Category: |
Latest revision as of 11:15, 2 March 2024
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
The $toolbar identifier returns 1 if the toolbar is enabled in mIRC, 0 otherwise. It also returns information about the items on the toolbar.
Synopsis[edit]
$toolbar
$toolbar(name|N)
Parameters[edit]
None
or
Name|N = Name or Nth item in toolbar about which to return information. 0 = total number of toolbar items.
Properties[edit]
- .name
- .type
- .tip
- .alias
- .popup
- .width
- .height
- .wide
- .enabled
- .visible
- .checked
- .alpha
Example[edit]
//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[edit]
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.