mIRC Home    About    Download    Register    News    Help

Print Thread
#211010 31/03/09 06:23 AM
Joined: Feb 2007
Posts: 234
M
MTec007 Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Feb 2007
Posts: 234
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
}

MTec007 #211011 31/03/09 09:09 AM
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
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


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
argv0 #211012 31/03/09 12:26 PM
Joined: Feb 2007
Posts: 234
M
MTec007 Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Feb 2007
Posts: 234
thanks


Link Copied to Clipboard