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

m
(Add'l info)
Line 2: Line 2:
  
 
The possible returned value can be:
 
The possible returned value can be:
* "activex" - called from
+
* "activex" - called from $comcall
 
* "command" - called from a command
 
* "command" - called from a command
 
* "dde" - called from a external application using {{mIRC|$dde|DDE}}  
 
* "dde" - called from a external application using {{mIRC|$dde|DDE}}  
Line 8: Line 8:
 
* "dragdrop" - called from a drag'n'drop event
 
* "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" - called from a 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" - called from any other context
+
* "other" - called from other contexts including label of popups menu and /filter -a
  
  
Line 56: Line 56:
 
</source>
 
</source>
  
 
+
In alt+P code for nicklist right-click menu:
 
+
<source lang="mIRC">
 
+
$caller displays in menu text as other:echo -a $caller displays as menu
 +
</source>
 
== Compatibility ==
 
== Compatibility ==
 
pending, beta stage
 
pending, beta stage
  
 
== See Also ==
 
== See Also ==
{{mIRC|$fromeditbox}}
+
{{collist
 
+
|count = 3
[[Category:mIRC identifiers|caller]]
+
|style = width: 100%; display: inherit;
 +
|
 +
* {{mIRC|$fromeditbox}}
 +
* {{mIRC|$comcall}}
 +
* {{mIRC|/toolbar}}
 +
* {{mIRC|/filter}}
 +
* {{mIRC|$dll}}
 +
* {{mIRC|$dde}}
 +
* {{mIRC|/play}}
 +
* {{mIRC|/timer}}
 +
* {{mIRC|$devent}}
 +
}}

Revision as of 02:37, 22 November 2018

$caller indicates the type of the caller.

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
  • "other" - called from other contexts including label of popups menu and /filter -a


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

Timer: type in editbox:

/timer 1 1 echo -a $caller
or
//timer 1 1 echo -a $ $+ caller

In alt+P code for nicklist right-click menu:

$caller displays in menu text as other:echo -a $caller displays as menu

Compatibility

pending, beta stage

See Also