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

(Example)
Line 1: Line 1:
{{mirc title|$caller Identifier}}'''$caller''' returns a value which indicate in which kind of exact context an alias was called.
+
{{mirc title|$caller Identifier}}'''$caller''' indicates the type of the caller.
  
 
The possible returned value can be:
 
The possible returned value can be:
* "activex" -
+
* "activex" - called from
 
* "command" - called from a command
 
* "command" - called from a command
* "dde" - called from a {{mIRC|$dde|DDE}} call
+
* "dde" - called from a external application using {{mIRC|$dde|DDE}}  
* "dll" - called from a {{mIRC|DLL}} call
+
* "dll" - called from a {{mIRC|DLL}}
* "dragdrop" - called from a dragndrop context
+
* "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
* "funckey" - called from a function key context
+
* "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 a mouse
 
* "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" -
+
* "other" - called from any other context
  
  
Line 28: Line 28:
  
 
== Example ==
 
== Example ==
<source lang="mIRC">alias myalias echo -ag $caller</source>
+
Command & Identifier: execute /A or //noop $A
 +
<source lang="mIRC">alias A B
 +
alias B echo -ag $caller</source>
 +
 
 +
Editbox: execute /A
 +
<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 {
 +
item : echo -a $caller
 +
}</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>
  
 
== Compatibility ==
 
== Compatibility ==

Revision as of 04:32, 8 January 2018

$caller indicates the type of the caller.

The possible returned value can be:

  • "activex" - called from
  • "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
  • "funckey" - called from a function key
  • "identifier" - called from an identifier
  • "menu" - called from a menu
  • "mouse" - called from a mouse
  • "play" - called from a /play context
  • "sendmsg" - called from a sendmessage() function
  • "timer" - called from a timer
  • "other" - called from any other context


Synopsis

$caller

Parameters

None

Properties

None

Example

Command & Identifier: execute /A or //noop $A

alias A B
alias B echo -ag $caller

Editbox: execute /A

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  {
item : echo -a $caller
}

play: execute in a connected status window //play -as A $mircini | .timer 1 2 play off

alias A echo -sg $caller

Compatibility

pending, beta stage

See Also

$fromeditbox