home *** CD-ROM | disk | FTP | other *** search
/ Using Asymetrix Multimedi…ool Book Special Edition / SE_UAMT.iso / examples / 09mtb05.tbk (.txt) < prev    next >
Encoding:
Asymetrix ToolBook File  |  1995-10-26  |  137.3 KB  |  458 lines

  1. Using notify
  2. <BookPath>
  3. :HDMEDIAPATH
  4. System
  5. info_LastSavedBy
  6. 10/26/95 7:36:08 PM
  7. info_LastSaved
  8. Erik Reitan
  9. Arial
  10. Erik Reitan
  11. Arial
  12. Arial
  13. 10/26/95 7:35:12 PM
  14. 10/26/95 7:38:51 PM
  15. Arial
  16. Erik Reitan
  17. Erik Reitan
  18. 10/26/95 7:39:53 PM
  19. waveAudio
  20. Wave Audio driver not found!
  21. enterBook
  22. "waveAudio" 
  23. sysSupportedMedia
  24. "Wave 
  25. % driver 
  26. xfound!"
  27. 3DVideo
  28. Page "Using notify"
  29. Page id 0 of Book "D:\TEMP11\CHAP24\24MTB03.TBK"
  30. Page id 0 of Book "D:\TEMP11\CHAP24\24MTB03.TBK"
  31. Page id 0 of Book "D:\TEMP11\CHAP24\24MTB03.TBK"
  32. Page id 2
  33. Page id 0 of Book "D:\TEMP11\CHAP24\24MTB03.TBK"
  34. Page id 0 of Book "D:\TEMP11\CHAP24\24MTB03.TBK"
  35. Page id 0 of Book "D:\TEMP11\CHAP24\24MTB03.TBK"
  36. Page id 0 of Book "D:\TEMP11\CHAP24\24MTB03.TBK"
  37. Page id 0 of Book "D:\TEMP11\CHAP24\24MTB03.TBK"
  38. Page id 0 of Book "D:\TEMP11\CHAP24\24MTB03.TBK"
  39. Page id 0 of Book "D:\TEMP11\CHAP24\24MTB03.TBK"
  40. Page id 0 of Book "D:\TEMP11\CHAP24\24MTB03.TBK"
  41. Page id 3
  42. 9507251716271924423826373122
  43. ASYM_TpID
  44. Backdrop
  45. _ASYMA_LockMove
  46. Multimedia ToolBook
  47. Creating Custom Menussions
  48. Playing a wave file and allowing other actionss
  49. enterpage
  50. ASYM_Reset
  51. Using notify
  52. 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. 
  53. example
  54. myMenuChoice
  55. buttonClick
  56. buttonClick
  57. myMenuChoice = popupMenu("0,0", 
  58. ID 100, "Help")
  59. Add a menu at author level
  60. Creating Cascading Menus Using OpenScripttcriptt
  61. CDBSE&File
  62. &Open...    Ctrl+O
  63. &Save    Ctrl+S
  64. Save &As...
  65. saveas
  66. &Import...
  67. import
  68. &Export...
  69. export
  70. Print Set&up...
  71. printsetup
  72. &Print Pages...    Ctrl+P
  73. printpages
  74. Prin&t Report...
  75. printreport
  76. Send &Mail...
  77. sendmail
  78. &Run...
  79. E&xit    Alt+F4
  80. &Edit
  81. &Undo    Ctrl+Z
  82. Cu&t    Ctrl+X
  83. &Copy    Ctrl+C
  84. &Paste    Ctrl+V
  85. paste
  86. C&lear    Del
  87. clear
  88. Select &All    Shift+F9
  89. selectall
  90. Select Pa&ge    Shift+F12
  91. selectpage
  92. &Size to Page    F11
  93. sizetopage
  94. F&ind...    F5
  95. Re&place...
  96. replace
  97. Aut&hor    F3
  98. author
  99. &Text
  100. &Character...    F6
  101. character
  102. &Paragraph...    F7
  103. paragraph
  104. &Regular    Ctrl+Space
  105. regular
  106. &Bold    Ctrl+B
  107. &Italic    Ctrl+I
  108. italic
  109. &Underline    Ctrl+U
  110. underline
  111. Stri&keout    Ctrl+K
  112. strikeout
  113. Superscrip&t/Subscript
  114. superscriptSubscript
  115. &Normal Script
  116. normalscript
  117. Su&bscript    Ctrl+L
  118. subscript
  119. Su&perscript    Ctrl+Shift+L
  120. superscript
  121. &Show Hotwords    F9
  122. showhotwords
  123. &Page
  124. &Next    Alt+Right
  125. &Previous    Alt+Left
  126. previous
  127. &First    Alt+Up
  128. first
  129. &Last    Alt+Down
  130. &Back    Shift+F2
  131. &History...    Ctrl+F2
  132. history
  133. N&ew Page    Ctrl+N
  134. newpage
  135. &Help
  136. &Contents    F1
  137. contents
  138. Status &Bar    F12
  139. statusbar
  140. CDBSAM&File
  141. &Open...    Ctrl+O
  142. &Save    Ctrl+S
  143. Save &As...
  144. saveas
  145. &Import...
  146. import
  147. &Export...
  148. export
  149. Print Set&up...
  150. printsetup
  151. &Print Pages...    Ctrl+P
  152. printpages
  153. Prin&t Report...
  154. printreport
  155. Send &Mail...
  156. sendmail
  157. &Run...
  158. E&xit    Alt+F4
  159. &Edit
  160. &Undo    Ctrl+Z
  161. Cu&t    Ctrl+X
  162. &Copy    Ctrl+C
  163. &Paste    Ctrl+V
  164. paste
  165. C&lear    Del
  166. clear
  167. Select &All    Shift+F9
  168. selectall
  169. Select Pa&ge    Shift+F12
  170. selectpage
  171. &Size to Page    F11
  172. sizetopage
  173. F&ind...    F5
  174. Re&place...
  175. replace
  176. Aut&hor    F3
  177. author
  178. &Media
  179. Media
  180. Media Test Menu
  181. notifybefore 
  182. "0,0"
  183. "0,0" 
  184. moved
  185.     ssm = sysSuspendMessages
  186. notifyBefore ASYM_Reset
  187. {loc;
  188. buttonClick 
  189. rightButtonClick 
  190. enterpage
  191. moved
  192. ASYM_Reset
  193. buttonDown
  194. buttonUp
  195. buttonClick
  196. buttonDoubleClick
  197. rightButtonDown
  198. rightButtonUp
  199. rightButtonClick
  200. rightButtonClick
  201. rightButtonDoubleClick
  202. new-4
  203. Music
  204. 24mtb01.wav
  205. e\bonanza
  206.  %+ %,  
  207. %%4+%%%%,%,,4,,,,%,%,,% 
  208. %,+ +
  209.  %%%%%%+%44+%%,,,8,,,%,%+
  210. %4+ +
  211.  %%  ++%
  212. %+%%+%%% +%%%%%%%, %
  213.  %%%%% 
  214. + %%+ %  4%+% 
  215.  4 % 
  216. %% %%
  217.  %%%+%+% %%%%4%% % 
  218. % %   %+% %+ ++
  219.     +%
  220. % %%%
  221. ###!#
  222. *;*&)
  223. &9))(
  224. '&*55
  225. ()5*(
  226. )9*)*
  227. '5&('
  228. &)).('
  229. H2)&)
  230. ))($$
  231. $(*$$(
  232. &*?D$
  233. ($95)&)(
  234. '($;'
  235. '()*K25
  236. '(****)
  237. $.**)
  238. $$*&(
  239. $(5('('
  240. $&9)(
  241. ')*;)
  242. $$$))
  243. $$**$
  244. $)*$)
  245. )*5$.)
  246. )*9;*).(
  247. $***)**$'
  248. $$*$$
  249. .)5*$
  250. ).()*))'
  251. )*))$
  252. (5?.(
  253. #!##!
  254. %    
  255. $)))$'
  256.      +%
  257.  %%,%
  258.  +,, 
  259. #""!"
  260. %%%% !
  261.  %%%%
  262. %%%%%
  263. ++ +% 
  264. ((.$(
  265. $$.).$
  266. '($$$
  267. %% %+8
  268. %%  %
  269. +%%%+4%% 
  270. $.$))$($$.)$)).($)).$$)(($)$(
  271. ).$$(
  272. ).$$$((
  273. %  % 
  274.  %    
  275. %! % 
  276.  %%  %%% 
  277.  ,,,%
  278.  4%4 4
  279.        
  280. % %%%
  281. % +   
  282.   + %
  283.  %+%  %%C +%, 
  284. 4%%+%
  285. %%+%%
  286. ++,%,
  287. ,%%%%
  288.     %%4,
  289.  %%%,,
  290. ,%,+ 
  291. %%%+% 
  292.   +%%%,,%,+%%
  293.  %%%%%
  294.  %,,4,%,4%8,8,%,+%  + %%+4%%
  295.     %,,%%%%%,,%, %%%+%, % 
  296.  %+  
  297. 488,%% ,,,% 4%%, %8%
  298. %,,>C,8+,,, %+%,8,, 
  299. % ,>,C>,%+,%
  300. %, ,%%  %%%%
  301. %,,%,CC>%%,% +8%%%++
  302. +%,%4,88%, 
  303.  +% %,%
  304. %%,,%%8,,%
  305. %%>,+488,,
  306. % +% 
  307. ,>,,% +,4,%%%,4
  308. ,,,,,,44%%, ,, %
  309. ,%4,%4 ++
  310. +%%48%%,%%%
  311. %%%%%%,,,8%
  312. %%4%%C%,4,, 
  313. %%%,% 
  314.  %,%4
  315. 84%, 4%%
  316. %8 %,  
  317.  ,8%,
  318. %%%  
  319. 4 %+%
  320.  % %%%%
  321. (').'
  322. ()$$(
  323. B/7/2
  324. .712/
  325. $.0502
  326. ./1//
  327. $.0502
  328. $0203
  329. $$*=0/
  330. $$$5=/7
  331. $&$$10//
  332. $)&$&07/
  333. $.&&&)12/0
  334. $&&&$)0</
  335. &)&.&&&2/0
  336. &)&)&$&1102J
  337. &--&&$$)1/03
  338. &&&).$&11/2
  339. B&--&&$$)1/03    
  340. &&-&&$$)$/00
  341. &*&*&&&&&$36/=
  342. &&&*$&)&$130/
  343. B**&&&&*&&.1600
  344. **-&-.*&&$&6000
  345. -*&&&&&-&&&&167/
  346. **-&-.&&&$&1000
  347. -*&&&&&-&&&&167/
  348. &&&&&.--&&&1777
  349. &&&&&&&-**&&&607
  350. &&&&&&&&-*&&&2607(
  351. -&-&&&&&&-*&-&106/
  352. -&&&-&-&&-*&&&-066
  353. &---&&*&)&)&--&)1600
  354. E&-&-&&*&)*)*&-))700$
  355. &&&&&**&&*$&&&&&&066
  356. &&&&&-****-&*&&&&176/
  357. *.&$$$*-&-*$.&&&&&2663
  358. '.*$$((
  359. &&&&&-***&-$*&&&&176/
  360. *.&$$$*-&-*$.&&&&&2663
  361. *)&&$$&-*-*&.&&&&&$667
  362. 5&$&$$$&&&**)&&&&.$<0000
  363. .$)((
  364. 5$$&)$.&-.*))&&&).&1030
  365. *&$&)-&&-)---&&..$$*2366
  366. *&@&&&&&-&.-&&&..$
  367. &&3/67
  368. &-&)&$*-)&)&)&&)$$$$*526A6
  369. $&&-&&&.-&-&..$$&&2/67
  370. &-&)&$*-)&)&)&&)$$$$*526A6
  371. -&$&&&-&&.&)&&&$$$$**2/77F
  372. *&&&&$$$.&$)$$$&)$
  373. *<I0AF
  374. 5&&&&$$$$.$.)$$$&)
  375. &*<10AF*
  376. B<*-&.$$$:$
  377. -*<36A
  378. **-&..$$@$
  379. $&<2666
  380. .<-&&.&&$$
  381. &<2367
  382. *<-&-&&$$
  383. :$$$:$-<=36(
  384. --**.-&&&$&$
  385. &2/07
  386. &-&*-&&&&&$$@
  387. $-/=70
  388. $-&&&&&&&&.&$$
  389. )22/3
  390. &-&*-&-&&&$&
  391. $-2=00
  392. $-&&&&&&&&.&$$
  393. )22/3
  394. --&-&&&&&$&.$
  395. $1223
  396. &-&&--&&&&&$:$$$
  397. *-*&-&&-&&&$
  398. $//2/
  399. ---*-&)---$$$$$
  400. $3//$
  401. .-*--&)&--&$$
  402. $$$10//
  403. &***&&.*&&$$)$$$100/
  404. .-*-*&&&--&$$:$$
  405. &***&&.*&&$$)$$$100/
  406. ***&-..-&$$$$$.133/
  407. .*--&&-).&
  408. $$$133/
  409. M*---&&-)$&$$$$10//
  410. *&*--&&.$:$$
  411.     M***---&.&
  412. $$J1//2
  413. .&&<*&$$$$$$133/
  414.     &&&<-&$$$$$$/33
  415. &&-*&$$
  416. $1//3N
  417. $&)*-)$$
  418. &//33!
  419. $$&)&.$$
  420. $0/=/
  421. $&)--)$$
  422. :&1//3
  423. $$&)&.$$
  424. $0/=/
  425. $$)&&$.@
  426. &&&&&$.&100/
  427. E-&&-&$.$300/    
  428. &&*.$)&000'    
  429. &&&-$$&2303
  430. &&&)$&2000
  431. &&&-.$)2303$    
  432. &&&)$&2000
  433. &&&$.2030
  434. .$&)2/03
  435. $$&&2/03
  436. :.&//0
  437. &1//0
  438. $-/2/
  439. $$///
  440. ;55K*
  441. $E2//
  442. )9*?5
  443. ')$($
  444. ($($$'
  445. (*.$$
  446. ($$$($
  447. Using notify
  448. 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. 
  449. example
  450. myMenuChoice
  451. buttonClick
  452. buttonClick
  453. myMenuChoice = popupMenu("0,0", 
  454. ID 100, "Help")
  455. splay a popupMenu
  456. Using the popupMenu() function OpenScripttcriptt
  457. Display a popup menu
  458.