Anybody have an idea of how to put menus in submenus? Here is my code:
menu menubar {
.Script
..$submenu($channels($1))
}
alias channels {
var %i $1, %s $lines(script.txt)
while (%i <= %s) {
tokenize 32 $read(script.txt,%i)
return $+($1,:echo -a $2-)
inc %i
}
}
With this you could just put something like:
#test4 Hi guys
in script.txt, then clicking #test4 in your menubar under Script will echo 'Hi guys' to your active window. There is no point to this yet, but I want to add menus to the #test4 submenu like: Change echo lines, delete etc...
I've tried doing something like:
menu menubar {
.Script
...$submenu($channels($1))
}
Adding an extra dot, but no luck, and tried return extra dots in my channels alias but no luck. If anybody can help out that will be great.