mIRC Home    About    Download    Register    News    Help

Print Thread
$caller #262172
08/01/18 12:34 AM
08/01/18 12:34 AM
Joined: Jul 2006
Posts: 3,515
France
W
Wims Offline OP
Planetary brain
Wims  Offline OP
Planetary brain
W

Joined: Jul 2006
Posts: 3,515
France
Although the very last request which leads to the new $fromeditbox talks about a $calias, which has been suggested in the past, the purpose of such a function was to report the name of the alias which called our alias (or maybe the addition of $caller has nothing to do with https://forums.mirc.com/ubbthreads.php/topics/262061/$fromeditbox ??)

$caller does not actually do that, it seems to return information about the context in which the alias was called, which is great to have too, but it's not addressing the main issue: debugging script by displaying a "stack trace".

Something else which would help a lot with debugging would be able to also get the script filename which have the alias which called our alias, as well as getting the script line.

So maybe the current $caller could see some properties (without any parameter just like $mouse!):

$caller.alias - return the name of the alias which called the current alias
$caller.script - return the filename in which the alias which called the current alias can be found
$caller.scriptline - return the line number in $caller.script where the alias which called the current alias can be found.

I'd also like to get examples for which $caller return "activex", "mouse" and "other"


Last edited by Wims; 08/01/18 01:24 AM.

Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: $caller [Re: Wims] #264334
21/11/18 07:01 PM
21/11/18 07:01 PM
Joined: Jan 2004
Posts: 1,158
maroon Offline
Hoopy frood
maroon  Offline
Hoopy frood

Joined: Jan 2004
Posts: 1,158
Originally Posted By: Wims

I'd also like to get examples for which $caller return "activex", "mouse" and "other"


$comcall = activex
/filter -a = other
nicklist right-click menu = other
/toolbar -a = mouse

Last edited by maroon; 21/11/18 07:52 PM.
$caller (tabcomp) [Re: maroon] #265368
05/04/19 10:01 PM
05/04/19 10:01 PM
Joined: Feb 2003
Posts: 2,600
Raccoon Offline
Hoopy frood
Raccoon  Offline
Hoopy frood

Joined: Feb 2003
Posts: 2,600
I would like to request "tabcomp" be added to the list of features currently returned by $caller. It currently returns "other". eg: type $caller then the tab key.


Well. At least I won lunch.
Good philosophy, see good in bad, I like!