|
|
Joined: Dec 2008
Posts: 1,515
Hoopy frood
|
OP
Hoopy frood
Joined: Dec 2008
Posts: 1,515 |
Hello, one small help for this?
menu * {
$iif($istok(%MY_MENU,$menu,44)) {
-
mymenu { mymenu }
-
}
}
|
|
|
|
Joined: Jul 2007
Posts: 1,129
Hoopy frood
|
Hoopy frood
Joined: Jul 2007
Posts: 1,129 |
You didn't indicate the title of the menu popup menu * { - $iif($istok(%MY_MENU,$menu,44),MenuTitle) { - mymenu { mymenu } - } } Of course you can choose any title name.
|
|
|
|
Joined: Dec 2008
Posts: 1,515
Hoopy frood
|
OP
Hoopy frood
Joined: Dec 2008
Posts: 1,515 |
This is not working, i have 5 menu items how can i added into the $iif identifier? menu * {
$iif($istok(%MY_MENU,$menu,44)) {
.-
.THE FIRST MENU { here_an_alias }
.-
.THE SECONDS MENU { here_an_other_alias }
}
} how can i add this in the MenuTitle? NOTE: i want to work the $menu only if exists in the %MY_MENU variable, just this
Last edited by westor; 12/12/10 06:09 PM.
|
|
|
|
Joined: Jul 2007
Posts: 1,129
Hoopy frood
|
Hoopy frood
Joined: Jul 2007
Posts: 1,129 |
Try $submenu(): menu * {
-
$iif($istok(%MY_MENU,$menu,44),MenuTitle)
.$submenu($mymenus($1))
}
alias -l mymenus {
if ($1 = 1) return The 1st Menu:{ Here_an_alias }
if ($1 = 2) return The 2nd Menu:{ here_an_other_alias }
}
|
|
|
|
Joined: Dec 2008
Posts: 1,515
Hoopy frood
|
OP
Hoopy frood
Joined: Dec 2008
Posts: 1,515 |
man i want when the variable (%MY_MENU) has the right click menu in then only appear the right click menu. i have this now:
#banlist_menu_menubar off
menu menubar {
-
« $+ $chr(7) $+ » BanList addon v $+ $bl_ver by $bl_owner « $+ $chr(7) $+ » { banlist }
-
}
#banlist_menu_menubar end
#banlist_menu_status off
menu status {
-
« $+ $chr(7) $+ » BanList addon v $+ $bl_ver by $bl_owner « $+ $chr(7) $+ » { banlist }
-
}
#banlist_menu_status end
#banlist_menu_all off
menu * {
-
« $+ $chr(7) $+ » BanList addon v $+ $bl_ver by $bl_owner « $+ $chr(7) $+ » { banlist }
-
}
#banlist_menu_all end
#banlist_menu_channel on
menu channel {
-
« $+ $chr(7) $+ » BanList addon v $+ $bl_ver by $bl_owner « $+ $chr(7) $+ » { banlist }
-
}
#banlist_menu_channel end
#banlist_menu_nicklist off
menu nicklist {
-
« $+ $chr(7) $+ » BanList addon v $+ $bl_ver by $bl_owner « $+ $chr(7) $+ » { banlist }
-
}
#banlist_menu_nicklist end
#banlist_menu_query off
menu query {
-
« $+ $chr(7) $+ » BanList addon v $+ $bl_ver by $bl_owner « $+ $chr(7) $+ » { banlist }
-
}
#banlist_menu_query end and i want to put it all in one like this an example, i want to do it one menu with (*) menu * {
$iif($istok(%BL_MENU,$menu,44)) {
-
« $+ $chr(7) $+ » BanList addon v $+ $bl_ver by $bl_owner « $+ $chr(7) $+ » { banlist }
-
}
}
this with the submenu not helping me
|
|
|
|
Joined: Jul 2007
Posts: 1,129
Hoopy frood
|
Hoopy frood
Joined: Jul 2007
Posts: 1,129 |
Sorry if my help didn't live up to your expectations. I'm still having hard time understanding you. You weren't and still aren't being specific enough to satisfy my comprehension. The $iif($istok(%BL_MENU,$menu,44)) { will result an error. Perhaps someone else can come and offer some input on your current code example.
|
|
|
|
Joined: Feb 2006
Posts: 181
Vogon poet
|
Vogon poet
Joined: Feb 2006
Posts: 181 |
menu * {
$iif($istok(%BL_MENU,$menu,44)) {
-
« $+ $chr(7) $+ » BanList addon v $+ $bl_ver by $bl_owner « $+ $chr(7) $+ » { banlist }
-
}
}
menu * {
-
$iif($istok(%BL_MENU,$menu,44),$mymenu):banlist
-
}
alias -l mymenu return « $+ $chr(7) $+ » BanList addon v $+ $bl_ver by $bl_owner « $+ $chr(7) $+ »
|
|
|
|
Joined: Dec 2008
Posts: 1,515
Hoopy frood
|
OP
Hoopy frood
Joined: Dec 2008
Posts: 1,515 |
Yes, that one is useful!
Thanks all for your help, sorry if you did not understand my english is not good! :s
|
|
|
|
|
|