mIRC Homepage
Posted By: MTec007 menu prefix - 31/03/09 06:23 AM
i have a menu prefix but i only want to show the submenu if a specific window is open, if its closed i only want to show one submenu item to open the window. i have played with $submenu but i dont think i can manipulate that command without help.

menu status {
IOS

;show this only if $window(@IOS) == $false
.open IOS:window @IOS

;show these only if $window(@IOS) != $false
.blah:etc
.foo:bar
}
Posted By: argv0 Re: menu prefix - 31/03/09 09:09 AM
you don't really need $submenu here

IOS
.$iif(!$window(@IOS),open IOS):window @IOS
.$iif($window(@IOS),blah):etc
.$iif($window(@IOS),foo):bar
Posted By: MTec007 Re: menu prefix - 31/03/09 12:26 PM
thanks
© mIRC Discussion Forums