Hi there!
I was wondering if it's possible to make a menu itemlist in mIRC dynamic.
I've the next menu:
menu channel {
Talker
.Inschakelen
..Stijl 1 (Groen): {
writeini -n talker.ini chans $+($network,,$chan) 1
echo -a De talker[1] is ingeschakeld voor $chan $+ .
}
..Stijl 2 (Rozegeel): {
writeini -n talker.ini chans $+($network,,$chan) 2
echo -a De talker[2] is ingeschakeld voor $chan $+ .
}
..Stijl 3 (Noodelz): {
writeini -n talker.ini chans $+($network,,$chan) 3
echo -a De talker[3] is ingeschakeld voor $chan $+ .
}
..Stijl 4 (Regenboog): {
writeini -n talker.ini chans $+($network,,$chan) 4
echo -a De talker[4] is ingeschakeld voor $chan $+ .
}
But is it possible to make it dependent of data in an ini file? That I can read this ini and create for each row a menu item by a for loop?
~Kaj
I'm sure it is possible. There have been any number of snippets that have dynamic data inside menu structures. They don't always have to be static. Of course this data won't update in live time, but only when the menu is activated.