From WikiChip
Difference between revisions of "mirc/identifiers/$caller"
(8 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | {{mirc title|$caller Identifier}}'''$caller''' returns a value which | + | {{mirc title|$caller Identifier}}'''$caller''' returns a value which indicates the context in which your alias has been called. |
The possible returned value can be: | The possible returned value can be: | ||
− | * "activex" - | + | * "activex" - called from $comcall |
* "command" - called from a command | * "command" - called from a command | ||
− | * "dde" - called from a {{mIRC|$dde|DDE}} | + | * "dde" - called from a external application using {{mIRC|$dde|DDE}} |
− | * "dll" - called from a {{mIRC|DLL}} | + | * "dll" - called from a {{mIRC|DLL}} |
− | * "dragdrop" - called from a | + | * "dragdrop" - called from a drag'n'drop event |
* "editbox" - called from an editbox | * "editbox" - called from an editbox | ||
− | * "event" - called from an event | + | * "event" - called from an event (including $devent = mouse) |
− | * "funckey" - called from a function key | + | * "funckey" - called from a function key |
* "identifier" - called from an identifier | * "identifier" - called from an identifier | ||
* "menu" - called from a menu | * "menu" - called from a menu | ||
− | * "mouse" - | + | * "mouse" - called from an alias attached to toolbar menu |
* "play" - called from a {{mIRC|/play}} context | * "play" - called from a {{mIRC|/play}} context | ||
* "sendmsg" - called from a {{mIRC|sendmessage|sendmessage()}} function | * "sendmsg" - called from a {{mIRC|sendmessage|sendmessage()}} function | ||
* "timer" - called from a timer | * "timer" - called from a timer | ||
− | * "other" - | + | * "http" - call back alias from $urlget |
− | + | * "tabcomp" - called from a tab completion in editbox | |
+ | * "other" - called from other contexts including: | ||
+ | # label of popups menu | ||
+ | # /filter -a sort_alias | ||
+ | # identifier in dialog table (ie returning one of the x y w h numbers) | ||
== Synopsis == | == Synopsis == | ||
<pre>$caller</pre> | <pre>$caller</pre> | ||
− | |||
== Parameters == | == Parameters == | ||
None | None | ||
== Properties == | == Properties == | ||
None | None | ||
+ | == Example == | ||
+ | Activex: edit the echo in the alias cbthread in {{mIRC|$comcall}} page to include $caller | ||
+ | |||
+ | Command & Identifier: execute /A or //noop $A | ||
+ | <source lang="mIRC">alias A B | ||
+ | alias B echo -ag $caller</source> | ||
+ | |||
+ | Editbox: | ||
+ | execute: /A | ||
+ | or | ||
+ | execute: //echo -a $caller | ||
+ | <source lang="mIRC">alias A echo -ag $caller</source> | ||
+ | |||
+ | Event: execute /dns test | ||
+ | <source lang="mIRC">on *:dns:echo -a $caller</source> | ||
+ | |||
+ | Funckey: hit shift + f11 on your keyboad: | ||
+ | <source lang="mIRC">alias s11 echo -a caller</source> | ||
+ | |||
+ | Menu: right click in a channel | ||
+ | <source lang="mIRC">menu channel { | ||
+ | $caller displays in menu label text as other:echo -a $caller displays here as menu | ||
+ | }</source> | ||
+ | |||
+ | play: execute in a connected status window //play -as A $mircini | .timer 1 2 play off | ||
+ | <source lang="mIRC">alias A echo -sg $caller</source> | ||
− | + | Timer: type in editbox: | |
− | <source lang="mIRC">//echo -a $ | + | <source lang="mIRC"> |
+ | /timer 1 1 echo -a $caller | ||
+ | or | ||
+ | //timer 1 1 echo -a $ $+ caller | ||
+ | </source> | ||
== Compatibility == | == Compatibility == | ||
− | + | == Compatibility == | |
+ | {{mIRC compatibility|7.52}} | ||
== See Also == | == See Also == | ||
− | {{mIRC|$fromeditbox}} | + | {{collist |
− | + | |count = 3 | |
− | + | |style = width: 100%; display: inherit; | |
+ | | | ||
+ | * {{mIRC|$fromeditbox}} | ||
+ | * {{mIRC|$comcall}} | ||
+ | * {{mIRC|/toolbar}} | ||
+ | * {{mIRC|/filter}} | ||
+ | * {{mIRC|$dll}} | ||
+ | * {{mIRC|$dde}} | ||
+ | * {{mIRC|/play}} | ||
+ | * {{mIRC|/timer}} | ||
+ | * {{mIRC|$devent}} | ||
+ | }} |
Latest revision as of 16:14, 5 July 2020
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
$caller returns a value which indicates the context in which your alias has been called.
The possible returned value can be:
- "activex" - called from $comcall
- "command" - called from a command
- "dde" - called from a external application using DDE
- "dll" - called from a DLL
- "dragdrop" - called from a drag'n'drop event
- "editbox" - called from an editbox
- "event" - called from an event (including $devent = mouse)
- "funckey" - called from a function key
- "identifier" - called from an identifier
- "menu" - called from a menu
- "mouse" - called from an alias attached to toolbar menu
- "play" - called from a /play context
- "sendmsg" - called from a sendmessage() function
- "timer" - called from a timer
- "http" - call back alias from $urlget
- "tabcomp" - called from a tab completion in editbox
- "other" - called from other contexts including:
- label of popups menu
- /filter -a sort_alias
- identifier in dialog table (ie returning one of the x y w h numbers)
Synopsis[edit]
$caller
Parameters[edit]
None
Properties[edit]
None
Example[edit]
Activex: edit the echo in the alias cbthread in $comcall page to include $caller
Command & Identifier: execute /A or //noop $A
alias A B alias B echo -ag $caller
Editbox: execute: /A or execute: //echo -a $caller
alias A echo -ag $caller
Event: execute /dns test
on *:dns:echo -a $caller
Funckey: hit shift + f11 on your keyboad:
alias s11 echo -a caller
Menu: right click in a channel
menu channel { $caller displays in menu label text as other:echo -a $caller displays here as menu }
play: execute in a connected status window //play -as A $mircini | .timer 1 2 play off
alias A echo -sg $caller
Timer: type in editbox:
/timer 1 1 echo -a $caller or //timer 1 1 echo -a $ $+ caller
Compatibility[edit]
Compatibility[edit]
Added: mIRC v7.52
Added on: 28 Feb 2018
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.