mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2006
Posts: 97
O
Babel fish
OP Offline
Babel fish
O
Joined: Feb 2006
Posts: 97
I'm trying to find a way to create a menu for specific query windows.

I know how to make menu's in mirc but don't know if there is a way to make them for specific query windows aka *status?
For @windows it's more simple

menu @win1, @win2 {
code
}

But for query it only seems to be possible in global way.

menu query {
code
}

update:
was searching a bit further and suddenly found this

.$iif($window(*status),foo):bar

Will this work ?
If it works it will be a hell lot of code as i need to manipulate almost 20 lines per window like this to have them window specific or is there a better way ?

More detailed, i would like to have a menu for some query windows
*window1
*window2
*window3

And only have a menu for that window and the default items removed (info, whois query etc). is such thing possible ?

Last edited by ots654685; 07/08/09 05:53 PM.
Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
Maybe this is of use, i.e. the last example to show/hide non-nested menu items acc. to some condition (in your case: a check of the name of $active or $menu) with a group.
Afaik you cannot prevent the display of menu items that are added by another script (e.g. the "default" popup definitions) with mIRC commands (especially as all popups are created according to the "load order" of the files). There may be some dll for it though.

Joined: Feb 2006
Posts: 97
O
Babel fish
OP Offline
Babel fish
O
Joined: Feb 2006
Posts: 97
Thanks, that should work wink


Link Copied to Clipboard