mIRC Home    About    Download    Register    News    Help

Print Thread
#228195 11/12/10 08:05 PM
Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Hello,

one small help for this?

Code:
menu * {
  $iif($istok(%MY_MENU,$menu,44)) { 
    -
    mymenu { mymenu }
    -
  } 
}


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
westor #228205 12/12/10 04:57 AM
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
You didn't indicate the title of the menu popup
Quote:
menu * {
-
$iif($istok(%MY_MENU,$menu,44),MenuTitle) {
-
mymenu { mymenu }
-
}
}
Of course you can choose any title name.

Tomao #228228 12/12/10 06:08 PM
Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
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?

Code:
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.

Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
westor #228233 12/12/10 07:06 PM
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Try $submenu():
Code:
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 }
}

Tomao #228234 12/12/10 10:05 PM
Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
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:

Code:
#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 (*)

Code:
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


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
westor #228246 13/12/10 04:09 AM
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
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
Quote:
$iif($istok(%BL_MENU,$menu,44)) {
will result an error. Perhaps someone else can come and offer some input on your current code example.

westor #228251 13/12/10 02:55 PM
Joined: Feb 2006
Posts: 181
C
Vogon poet
Offline
Vogon poet
C
Joined: Feb 2006
Posts: 181
Originally Posted By: westor

Code:
menu * {
  $iif($istok(%BL_MENU,$menu,44)) {
    -
    « $+ $chr(7) $+ » BanList addon v $+ $bl_ver by $bl_owner « $+ $chr(7) $+ » { banlist }
    -
  }
}



Code:
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) $+ »

Crinul #228253 13/12/10 04:12 PM
Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
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


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-

Link Copied to Clipboard