mIRC Homepage
Posted By: coolspot $execute identifier - 23/10/03 04:01 AM
It would be nice if there were an identifier that would return $true/$false depending on if a command was triggered using popups versus an editbox. I know there is $cmdbox, but that only applies if you have the secondary editbox enabled. This seems trivial, however I've found many situations in which I wanted to dynamically change the way a command functions based on how its triggered. I've gotten around this so far by using ON INPUT and setting a variable based on the givin parameters, then calling the needed alias (of course the alias has to have an if statement to check for the variable). However, maybe a built in identifier might be more efficient. Thanks... smile
Posted By: Raccoon Re: $execute identifier - 23/10/03 02:30 PM
Agreed.
However, I would suggest that the $event identifier be populated instead.

$event will return what : why

  menu : alias was triggered in a Custom Window menu (eg: MENU @window)
  menu.status : alias was triggered in a Status Window menu.
  menu.channel : alias was triggered in a Channel Window menu.
  menu.query : alias was triggered in a Query Window menu.
  menu.nicklist : alias was triggered in a Nick List menu.
  menu.menubar : alias was triggered in a Menu Bar menu.

- Raccoon
© mIRC Discussion Forums