MenuBar Click w/o Menu Item
Posted: Tue Mar 08, 2011 8:41 pm
I used the Auto Script button in the Menu Builder to build this script:
This works really well. But-- what about messages from Menus without Items?
(Once the single default item of New Menus are deleted.)
Clicking on the Edit Script button of such a Menu generates this:
But the Message (event) never happens, as per my above beep statement.
Code: Select all
--The following menuPick handler was generated by the Menu Builder.
on menuPick pWhich
switch pWhich
case "one"
--Insert script for one menu item here
break
case "two"
--Insert script for two menu item here
break
end switch
end menuPick
(Once the single default item of New Menus are deleted.)
Clicking on the Edit Script button of such a Menu generates this:
Code: Select all
on menuPick pItemName
beep
switch pItemName
end switch
end menuPick