I want to make a Tray menu with submenu
in the code, this part is not working
Code: Select all
FoodOfferedSubmenuID:
MsgBox, Food
return
Code: Select all
#Persistent
Menu, FoodOfferedSubmenuID, add, Text which says Pizza, PizzaSubroutine
Menu, FoodOfferedSubmenuID, add, Text which says Spaghetti, SpaghettiSubroutine
Menu, Tray, add, Text which says Food offered, :FoodOfferedSubmenuID
return
PizzaSubroutine:
MsgBox, pizza
return
SpaghettiSubroutine:
MsgBox, spaghetti
return
FoodOfferedSubmenuID:
MsgBox, Food
return