CookieMonster, concerning the heredoc, now you say you're using heredoc menu. Well maybe now you are, but that's not what you posted. Is it? You posted 2" elseif" lines, one that ran "notepad" and another that ran "sublime". So don't tell me after the fact that you're using the heredoc and give me a
not when you posted something entirely different.
CookieMonster wrote:The , , are empty strings ?
No, when you have a question about a particular scripting command, the first thing you should do is go to Help and look for Help on Scripting Commands and from there look for the particular command, like in this case "load". You would see that the , , is for loading label(s) of the script. You not loading a label so it's blank or empty.
As far as loading the txt file menu...I figured you'd have that problem, that's why I told you, you have to decide when files are selected which file extension are going to bring up which menu. In this case, if you had a file with a txt extension and you have txt extension listed in both the $txt and $py menus it going to bring up the first one in the script. So either split up the extension so you don't thave the same ones in each menu or combine them into one menu. For simply editing files, you really only need one menu for all those file types- txt, ini, xys, ahk, py, doc, docx, etc.
Why would you bother with sub-menus with something as simply as this...it doesn't pass the common sense test. The whole idea is to be able to quickly either run a program on the selected file or bring up a menu of programs to run the selected file(s) not have to dig deeper into submenus to select he program. Yes, there are way to do that, but I'm not getting into it here there are plenty of other menu programs already posted.