mIRC Home    About    Download    Register    News    Help

Topic Options
#262172 - 08/01/18 12:34 AM $caller
Wims Offline
Planetary brain

Registered: 31/07/06
Posts: 3438
Loc: 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"



Edited by Wims (08/01/18 01:24 AM)
_________________________
Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net

Top
#264334 - 21/11/18 07:01 PM Re: $caller [Re: Wims]
maroon Offline
Hoopy frood

Registered: 12/01/04
Posts: 970
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


Edited by maroon (21/11/18 07:52 PM)

Top