Kaj   -  Feb 28, 2013

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

Sorasyn  -  Feb 28, 2013

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.

Kaj  -  Feb 28, 2013

Do you perhaps have a snippet example where this is implemented? Can't find one :\

Sorasyn  -  Feb 28, 2013
menu nicklist {
  -
  Idle $duration($nick($active,$$1).idle,3)
}
SReject  -  Mar 02, 2013

Look into $submenu

Kaj  -  Sep 29, 2013

Hm this is not exactly what I'm looking for.

I've a .ini file with some values in, and I'd like to have this values as items in my submenu. So kind of a while withing creating the menu where you create a new .item for each ini value.

Sign in to comment

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.