(Created $appactive identifier - mIRC) |
m (→Compatibility: $appactive was added in 5.3) |
||
(9 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | '''$appactive''' returns ''$true'' or ''$false'' depending on whether mIRC is the active window or not. | + | {{mirc title|$appactive Identifier}}'''$appactive''' returns ''$true'' or ''$false'' depending on whether mIRC is the active window or not. |
− | = Synopsis = | + | |
+ | == Synopsis == | ||
<pre>$appactive</pre> | <pre>$appactive</pre> | ||
− | = Switches = | + | == Switches == |
None | None | ||
− | = Results = | + | == Results == |
<span style="display: inline-block; width: 50px;">'''$true'''</span>mIRC is currently the active window. | <span style="display: inline-block; width: 50px;">'''$true'''</span>mIRC is currently the active window. | ||
<span style="display: inline-block; width: 50px;">'''$false'''</span>mIRC is currently '''not''' the active window. | <span style="display: inline-block; width: 50px;">'''$false'''</span>mIRC is currently '''not''' the active window. | ||
− | = Example = | + | == Example == |
Let's say you have a listening event, just to make mIRC beep if someone uses your name in a channel. We call these notifications, as well as highlights. Well, if mIRC is the currently active window, these sounds can be either annoying or meaningless. Therefore, we would set up the listener to check the '''$appactive''' identifier to make sure mIRC is not active before sending out the audible notification. | Let's say you have a listening event, just to make mIRC beep if someone uses your name in a channel. We call these notifications, as well as highlights. Well, if mIRC is the currently active window, these sounds can be either annoying or meaningless. Therefore, we would set up the listener to check the '''$appactive''' identifier to make sure mIRC is not active before sending out the audible notification. | ||
Line 24: | Line 25: | ||
}</source> | }</source> | ||
− | = See also = | + | == Compatibility == |
− | * | + | {{mIRC compatibility|5.3}} |
+ | |||
+ | == See also == | ||
+ | * {{mIRC|$appstate}} | ||
+ | {{mIRC identifier list}} | ||
− | [[Category:mIRC identifiers]] | + | [[Category:mIRC identifiers|appactive]] |
Latest revision as of 00:55, 24 August 2021
$appactive returns $true or $false depending on whether mIRC is the active window or not.
Synopsis[edit]
$appactive
Switches[edit]
None
Results[edit]
$truemIRC is currently the active window.
$falsemIRC is currently not the active window.
Example[edit]
Let's say you have a listening event, just to make mIRC beep if someone uses your name in a channel. We call these notifications, as well as highlights. Well, if mIRC is the currently active window, these sounds can be either annoying or meaningless. Therefore, we would set up the listener to check the $appactive identifier to make sure mIRC is not active before sending out the audible notification.
ON *:TEXT:$($+(*,$me,*)):#: { ; Make sure mIRC is not the active application if (!$appactive) { ; Execute 5 beeps at 200 millisecond intervals beep 5 200 } }
Compatibility[edit]
Added: mIRC v5.3
Added on: 13 Dec 1997
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.