mIRC Home    About    Download    Register    News    Help

Print Thread
right click menu for specific query window #214538 07/08/09 05:39 PM
Joined: Feb 2006
Posts: 97
O
ots654685 Offline OP
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.
Re: right click menu for specific query window [Re: ots654685] #214542 07/08/09 08:43 PM
Joined: Nov 2006
Posts: 1,559
H
Horstl Offline
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.

Re: right click menu for specific query window [Re: Horstl] #214607 09/08/09 02:59 PM
Joined: Feb 2006
Posts: 97
O
ots654685 Offline OP
Babel fish
OP Offline
Babel fish
O
Joined: Feb 2006
Posts: 97
Thanks, that should work wink