mIRC Home    About    Download    Register    News    Help

Print Thread
#56904 23/10/03 04:01 AM
Joined: Mar 2003
Posts: 50
C
Babel fish
OP Offline
Babel fish
C
Joined: Mar 2003
Posts: 50
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

#56905 23/10/03 02:30 PM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
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


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

Link Copied to Clipboard