Creating Dynamic Menus in mIRC
I pasted this from a tutorial I wrote about two years ago:
if you ever wanted to make a menu with multiple items in mIRC you must have
probably tried pasting one single line in your popup a million times
and changing each one just to make some sort of list. Well in mIRC 6.03
the $submenu identifier changes all that. You can now make dynamic lists
with about 3 lines of code that will enable you to put unlimited items in a menu.
here is an example of how to make a list of nicknames for yourself
Nicknames
.Add:adMenItem
.-
.$submenu($mymenu($1))
alias admenitem {
write $mircdirmymenu $1 $+:nickname $1
}
alias mymenu {
;check if there is a line in the file and the entries are not begin or end
if ($read($mircdirmymenu,$1)) && ($1 isnum) {
return $read($mircdirmymenu,$1)
}
;you can add things like if ($1 = end) { return - } if you like to make separators in your menus
}
I haven't checked if this code works but it should.
e-mail me if there need be any corrections.