mIRC Homepage

right click menu for specific query window

Posted By: ots654685

right click menu for specific query window - 07/08/09 05:39 PM

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 ?
Posted By: Horstl

Re: right click menu for specific query window - 07/08/09 08:43 PM

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.
Posted By: ots654685

Re: right click menu for specific query window - 09/08/09 02:59 PM

Thanks, that should work wink
© 2022 mIRC Discussion Forums