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

(Add'l info)
m
Line 16: Line 16:
 
* "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 other contexts including label of popups menu and /filter -a
+
* "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
  
== Example ==
 
 
Command & Identifier: execute /A or //noop $A
 
Command & Identifier: execute /A or //noop $A
 
<source lang="mIRC">alias A B
 
<source lang="mIRC">alias A B
 
alias B echo -ag $caller</source>
 
alias B echo -ag $caller</source>
  
Editbox: execute /A  
+
Editbox:
 +
execute: /A
 +
or
 +
execute: //echo -a $caller
 
<source lang="mIRC">alias A echo -ag $caller</source>
 
<source lang="mIRC">alias A echo -ag $caller</source>
  
Line 43: Line 48:
 
Menu: right click in a channel
 
Menu: right click in a channel
 
<source lang="mIRC">menu channel {
 
<source lang="mIRC">menu channel {
item : echo -a $caller
+
$caller displays in menu label text as other:echo -a $caller displays here as menu
 
}</source>
 
}</source>
  
Line 56: Line 61:
 
</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
+
7.52
 
 
 
== See Also ==
 
== See Also ==
 
{{collist
 
{{collist

Revision as of 12:52, 21 December 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:
  1. label of popups menu
  2. /filter -a sort_alias
  3. identifier in dialog table (ie returning one of the x y w h numbers)

Synopsis

$caller

Parameters

None

Properties

None

Example

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

7.52

See Also