It would be greatly appreciated if there was an identifier that returned $true|$false dependant on if an alias was called
directly from the editbox. Its been brought up before but I'd like to bring it back to your attention with a valid use-case.
I'm currently working on my theme(because mIRC customization is what its all about). In doing such, I want to override /msg, /describe, /notice, etc for display purposes.
When I don't have a respective window open for the target and ...
... the command is called from the editbox I want to display the message to the active window.
... the command is called from an alias, script, timer, menu, etc I want to display the message to the status window.
alias example {
echo -a the example alias was called from: $iif($fromeditbox, editbox, elsewhere)
}
Only when the alias is directly called from the editbox should $fromeditbox be truthy. if AliasA calls AliasB, regardless of where AliasA was called, within AliasB $fromeditbox would return $false.
If you are interested in a more expansive solution, AdiIRC supports a
$calias identifier to return various information about the caller-stack. If something similar were implemented, I'd like to see it expanded to include a way to determine the caller-type; such as 'timer', 'event', 'alias', 'menu', 'editbox', 'identifer'($hfind() for example), 'command'(/filter), etc