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