From WikiChip
Difference between revisions of "mirc/identifiers/$menutype"
(Created page with "{{mirc title|$menutype Identifier}}'''$menutype''' return the name/type of menu in use, same as {{mIRC|$menu}}. == Synopsis == <pre>$menutype</pre> == Paramters == None ==...") |
|||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | {{mirc title|$menutype Identifier}}'''$menutype''' return the | + | {{mirc title|$menutype Identifier}}'''$menutype''' return the type of menu inside a menu { }. |
+ | |||
+ | For status/channel/query/menubar, $menutype returns the same as {{mIRC|$menu}}, which is "status", "channel" etc.. | ||
+ | But for custom windows, $menutype returns "custom". | ||
+ | |||
== Synopsis == | == Synopsis == | ||
Line 14: | Line 18: | ||
== Example == | == Example == | ||
<source lang="mIRC"> | <source lang="mIRC"> | ||
− | menu nicklist,channel { | + | menu nicklist,channel,@win,@other { |
$iif($menutype == nicklist,...):{} | $iif($menutype == nicklist,...):{} | ||
− | $iif($menutype == | + | $iif($menutype == custom,$iif($menu == @other,stuff,otherstuff)):{} |
} | } | ||
</source> | </source> | ||
Line 23: | Line 27: | ||
{{mIRC compatibility|6.3}} | {{mIRC compatibility|6.3}} | ||
− | == See | + | == See also == |
− | {{mIRC|$menu}} | + | * {{mIRC|$menu}} |
− | {{mIRC|$menucontext}} | + | * {{mIRC|$menucontext}} |
− | [[Category: | + | {{mIRC identifier list}} |
+ | [[Category:mIRC identifiers|menutype]] |
Latest revision as of 15:09, 27 April 2019
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
$menutype return the type of menu inside a menu { }.
For status/channel/query/menubar, $menutype returns the same as $menu, which is "status", "channel" etc.. But for custom windows, $menutype returns "custom".
Synopsis[edit]
$menutype
Paramters[edit]
None
Properties[edit]
None
Example[edit]
menu nicklist,channel,@win,@other { $iif($menutype == nicklist,...):{} $iif($menutype == custom,$iif($menu == @other,stuff,otherstuff)):{} }
Compatibility[edit]
Added: mIRC v6.3
Added on: 16 Aug 2007
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.
See also[edit]
mIRC identifier list