This script creates a cascading menu by first adding the menu named Media to the menu bar at author level. Then, a second menu is added to the Media menu called Video. Within the Video menu, the author will have one option called Control.
example
myMenuChoice
buttonClick
buttonClick
myMenuChoice = popupMenu("0,0",
ID 100, "Help")
Add a menu at author level
Creating Cascading Menus Using OpenScripttcriptt
CDBSE&File
&Open... Ctrl+O
&Save Ctrl+S
Save &As...
saveas
&Import...
import
&Export...
export
Print Set&up...
printsetup
&Print Pages... Ctrl+P
printpages
Prin&t Report...
printreport
Send &Mail...
sendmail
&Run...
E&xit Alt+F4
&Edit
&Undo Ctrl+Z
Cu&t Ctrl+X
&Copy Ctrl+C
&Paste Ctrl+V
paste
C&lear Del
clear
Select &All Shift+F9
selectall
Select Pa&ge Shift+F12
selectpage
&Size to Page F11
sizetopage
F&ind... F5
Re&place...
replace
Aut&hor F3
author
&Text
&Character... F6
character
&Paragraph... F7
paragraph
&Regular Ctrl+Space
regular
&Bold Ctrl+B
&Italic Ctrl+I
italic
&Underline Ctrl+U
underline
Stri&keout Ctrl+K
strikeout
Superscrip&t/Subscript
superscriptSubscript
&Normal Script
normalscript
Su&bscript Ctrl+L
subscript
Su&perscript Ctrl+Shift+L
superscript
&Show Hotwords F9
showhotwords
&Page
&Next Alt+Right
&Previous Alt+Left
previous
&First Alt+Up
first
&Last Alt+Down
&Back Shift+F2
&History... Ctrl+F2
history
N&ew Page Ctrl+N
newpage
&Help
&Contents F1
contents
Status &Bar F12
statusbar
CDBSAM&File
&Open... Ctrl+O
&Save Ctrl+S
Save &As...
saveas
&Import...
import
&Export...
export
Print Set&up...
printsetup
&Print Pages... Ctrl+P
printpages
Prin&t Report...
printreport
Send &Mail...
sendmail
&Run...
E&xit Alt+F4
&Edit
&Undo Ctrl+Z
Cu&t Ctrl+X
&Copy Ctrl+C
&Paste Ctrl+V
paste
C&lear Del
clear
Select &All Shift+F9
selectall
Select Pa&ge Shift+F12
selectpage
&Size to Page F11
sizetopage
F&ind... F5
Re&place...
replace
Aut&hor F3
author
&Media
Media
Media Test Menu
notifybefore
"0,0"
"0,0"
moved
ssm = sysSuspendMessages
notifyBefore ASYM_Reset
{loc;
buttonClick
rightButtonClick
enterpage
moved
ASYM_Reset
buttonDown
buttonUp
buttonClick
buttonDoubleClick
rightButtonDown
rightButtonUp
rightButtonClick
rightButtonClick
rightButtonDoubleClick
new-4
Music
24mtb01.wav
e\bonanza
%+ %,
%%4+%%%%,%,,4,,,,%,%,,%
%,+ +
%%%%%%+%44+%%,,,8,,,%,%+
%4+ +
%% ++%
%+%%+%%% +%%%%%%%, %
%%%%%
+ %%+ % 4%+%
4 %
%% %%
%%%+%+% %%%%4%% %
% % %+% %+ ++
+%
% %%%
###!#
*;*&)
&9))(
'&*55
()5*(
)9*)*
'5&('
&)).('
H2)&)
))($$
$(*$$(
&*?D$
($95)&)(
'($;'
'()*K25
'(****)
$.**)
$$*&(
$(5('('
$&9)(
')*;)
$$$))
$$**$
$)*$)
)*5$.)
)*9;*).(
$***)**$'
$$*$$
.)5*$
).()*))'
)*))$
(5?.(
#!##!
%
$)))$'
+%
%%,%
+,,
#""!"
%%%% !
%%%%
%%%%%
++ +%
((.$(
$$.).$
'($$$
%% %+8
%% %
+%%%+4%%
$.$))$($$.)$)).($)).$$)(($)$(
).$$(
).$$$((
% %
%
%! %
%% %%%
,,,%
4%4 4
% %%%
% +
+ %
%+% %%C +%,
4%%+%
%%+%%
++,%,
,%%%%
%%4,
%%%,,
,%,+
%%%+%
+%%%,,%,+%%
%%%%%
%,,4,%,4%8,8,%,+% + %%+4%%
%,,%%%%%,,%, %%%+%, %
%+
488,%% ,,,% 4%%, %8%
%,,>C,8+,,, %+%,8,,
% ,>,C>,%+,%
%, ,%% %%%%
%,,%,CC>%%,% +8%%%++
+%,%4,88%,
+% %,%
%%,,%%8,,%
%%>,+488,,
% +%
,>,,% +,4,%%%,4
,,,,,,44%%, ,, %
,%4,%4 ++
+%%48%%,%%%
%%%%%%,,,8%
%%4%%C%,4,,
%%%,%
%,%4
84%, 4%%
%8 %,
,8%,
%%%
4 %+%
% %%%%
(').'
()$$(
B/7/2
.712/
$.0502
./1//
$.0502
$0203
$$*=0/
$$$5=/7
$&$$10//
$)&$&07/
$.&&&)12/0
$&&&$)0</
&)&.&&&2/0
&)&)&$&1102J
&--&&$$)1/03
&&&).$&11/2
B&--&&$$)1/03
&&-&&$$)$/00
&*&*&&&&&$36/=
&&&*$&)&$130/
B**&&&&*&&.1600
**-&-.*&&$&6000
-*&&&&&-&&&&167/
**-&-.&&&$&1000
-*&&&&&-&&&&167/
&&&&&.--&&&1777
&&&&&&&-**&&&607
&&&&&&&&-*&&&2607(
-&-&&&&&&-*&-&106/
-&&&-&-&&-*&&&-066
&---&&*&)&)&--&)1600
E&-&-&&*&)*)*&-))700$
&&&&&**&&*$&&&&&&066
&&&&&-****-&*&&&&176/
*.&$$$*-&-*$.&&&&&2663
'.*$$((
&&&&&-***&-$*&&&&176/
*.&$$$*-&-*$.&&&&&2663
*)&&$$&-*-*&.&&&&&$667
5&$&$$$&&&**)&&&&.$<0000
.$)((
5$$&)$.&-.*))&&&).&1030
*&$&)-&&-)---&&..$$*2366
*&@&&&&&-&.-&&&..$
&&3/67
&-&)&$*-)&)&)&&)$$$$*526A6
$&&-&&&.-&-&..$$&&2/67
&-&)&$*-)&)&)&&)$$$$*526A6
-&$&&&-&&.&)&&&$$$$**2/77F
*&&&&$$$.&$)$$$&)$
*<I0AF
5&&&&$$$$.$.)$$$&)
&*<10AF*
B<*-&.$$$:$
-*<36A
**-&..$$@$
$&<2666
.<-&&.&&$$
&<2367
*<-&-&&$$
:$$$:$-<=36(
--**.-&&&$&$
&2/07
&-&*-&&&&&$$@
$-/=70
$-&&&&&&&&.&$$
)22/3
&-&*-&-&&&$&
$-2=00
$-&&&&&&&&.&$$
)22/3
--&-&&&&&$&.$
$1223
&-&&--&&&&&$:$$$
*-*&-&&-&&&$
$//2/
---*-&)---$$$$$
$3//$
.-*--&)&--&$$
$$$10//
&***&&.*&&$$)$$$100/
.-*-*&&&--&$$:$$
&***&&.*&&$$)$$$100/
***&-..-&$$$$$.133/
.*--&&-).&
$$$133/
M*---&&-)$&$$$$10//
*&*--&&.$:$$
M***---&.&
$$J1//2
.&&<*&$$$$$$133/
&&&<-&$$$$$$/33
&&-*&$$
$1//3N
$&)*-)$$
&//33!
$$&)&.$$
$0/=/
$&)--)$$
:&1//3
$$&)&.$$
$0/=/
$$)&&$.@
&&&&&$.&100/
E-&&-&$.$300/
&&*.$)&000'
&&&-$$&2303
&&&)$&2000
&&&-.$)2303$
&&&)$&2000
&&&$.2030
.$&)2/03
$$&&2/03
:.&//0
&1//0
$-/2/
$$///
;55K*
$E2//
)9*?5
')$($
($($$'
(*.$$
($$$($
Using notify
This script in the button to the right will display the menu items of the standard Help menu. A local variable named myMenuChoice is set to the value that the popupMenu() function returns. , the author will have one option called Control.