Re: the extra comma - I was trying to leave a space for "MenuItemName"--this isn't necessary?
I was trying to use
Menu, Tray, Icon, %A_ScriptFullPath%,159,5
I used %A_ScriptFullPath% because the icon is supposed to be in the compiled .exe. I compiled the .exe
without the above Menu line and found out via ResHacker that my icon was in Group 159 and the 16-pixel version was "Ordinal name: 5". But when I compile it
with that Menu line and try to run the .exe, it complains:
---------------------------
Error: Can't load icon. The current thread will exit.
...
Line#
---> 024: Menu,Tray,Icon,%A_ScriptFullPath%,159,5
---------------------------
And of course I can't actually check it before compiling, as the icon is not yet contained in the script file... Any suggestions on how to fix that troublesome line?
[and just for kicks, I did also try it with the extra comma: Menu, Tray, Icon,, %A_ScriptFullPath%,159,5 - the compiled program at least runs without the error, but the tray icon is still wrong.]
Thanks!