home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: WPS_PM / WPS_PM.zip / PMASST.ZIP / PMADEMO.PMD < prev    next >
Text File  |  1991-05-07  |  8KB  |  224 lines

  1. {comment: PM Assistant demonstration file.  Copyright (C) 1990  Utilis Inc.}\
  2. \
  3. {lmgn:20,rmgn:20,font:helv,pt:14}\
  4. {title:PM Assistant Demo}\
  5. {mfile:pmademo.pma}\
  6. Loading data, please wait...
  7. {macro:posdemo}\
  8.  
  9. {page}\
  10. {lmgn:20,rmgn:20,font:helv,pt:14}\
  11. A PM Assistant Demonstration\
  12. {n,col:180,font:helv,pt:8,style:bold}(page 1 of 12)\
  13. \
  14. {n,pt:10,style:bold,fclr:darkgreen,col:50}\
  15. With this 10 minute demonstration you will see some of the
  16. capabilities of PM Assistant and learn how PM Assistant works.
  17.  
  18. {n}{n}{col:50}
  19. The demonstration consists of explanatory text accompanied by animated
  20. use of PM Assistant.  At the bottom of this window is a
  21. {font:sys,pt:12,fclr:fstd,style:normal}Space=Continue
  22. {font:helv,pt:10,fclr:darkgreen,style:bold}\
  23. button.  When you have read the text, push the button (or the space bar)
  24. to observe a demonstration of what the text discussed and to go onto
  25. the next page of text.    During these animated portions of the demonstration
  26. you will see the mouse pointer move automatically.
  27. \
  28. {macro:startpmasst}\
  29. \
  30. {page}\
  31. {lmgn:20,rmgn:20,font:helv,pt:14}\
  32. The PM Assistant Display\
  33. {n,col:180,font:helv,pt:8,style:bold}(page 2 of 12)\
  34. \
  35. {n,pt:10,style:bold,fclr:darkgreen,col:50}\
  36. The PM Assistant display consists of a macro-list display area (presently
  37. displaying
  38. {font:sys,pt:12,fclr:fstd,style:normal}No Macros\
  39. {font:helv,pt:10,fclr:darkgreen,style:bold}\
  40. ), and a status/help line at the bottom (presently displaying
  41. {fclr:fstd,style:normal}Ready\
  42. {fclr:darkgreen,style:bold}\
  43. ).  As you select menus the status/help line
  44. displays a brief description of the selected menu command.
  45.  
  46. {n,fclr:fstd,style:normal,pt:14}\
  47. Another Application
  48.  
  49. {n,pt:10,style:bold,fclr:darkgreen,col:50}\
  50. We will demonstrate PM Assistant by creating macros to manipulate another
  51. application which comes with PM Assistant: DiskWatch.  This application
  52. is a simple tool which monitors your hard disk free space.
  53. \
  54. {page}\
  55. {lmgn:20,rmgn:20,font:helv,pt:14}\
  56. A Start Program Macro
  57. {n,col:180,font:helv,pt:8,style:bold}(page 3 of 12)\
  58.  
  59. {n,pt:10,style:bold,fclr:darkgreen,col:50}\
  60. First we create a macro which starts the DiskWatch program.
  61. We create the macro by choosing the
  62. {font:sys,pt:12,fclr:fstd,style:normal}Macro Create Start Program\
  63. {font:helv,pt:10,fclr:darkgreen,style:bold} menu command and filling
  64. in dialogue boxes with information about the macro and the program to
  65. be started.
  66.  
  67.  
  68. {macro:startdiskwatch}
  69.  
  70. {page}\
  71. {lmgn:20,rmgn:20,font:helv,pt:14}\
  72. Executing A Macro
  73. {n,col:180,font:helv,pt:8,style:bold}(page 4 of 12)\
  74.  
  75. {n,pt:10,style:bold,fclr:darkgreen,col:50}\
  76. The macro we created is now listed in the macro-list
  77. display area.  This display area lists the macro's hot-key (which for this
  78. macro is blank), an abbreviation for the macro type (for this macro
  79. {font:sys,pt:12,fclr:fstd,style:normal}SP
  80. {font:helv,pt:10,fclr:darkgreen,style:bold}\
  81. for Start Program), the macro's name (\
  82. {font:sys,pt:12,fclr:fstd,style:normal}start diskwatch\
  83. {font:helv,pt:10,fclr:darkgreen,style:bold}\
  84. ), and the macro's comment (\
  85. {font:sys,pt:12,fclr:fstd,style:normal}Start the diskwatch program\
  86. {font:helv,pt:10,fclr:darkgreen,style:bold})
  87.  
  88. {n}{n}{col:50}
  89. We execute the macro by double-clicking on the macro in
  90. the macro-list display area.  The macro will start the Disk Watch program.
  91.  
  92. {macro:exediskwatch}
  93.  
  94. {page}\
  95. {lmgn:20,rmgn:20,font:helv,pt:14}\
  96. Window Placement
  97. {n,col:180,font:helv,pt:8,style:bold}(page 5 of 12)\
  98.  
  99. {n,pt:10,style:bold,fclr:darkgreen,col:50}\
  100. Notice that when started, the DiskWatch program is placed in the middle
  101. of the screen.    We would rather the window be placed and sized where we
  102. put it manually.
  103.  
  104. {n}{n}{col:50}
  105. We use the
  106. {font:sys,pt:12,fclr:fstd,style:normal}Macro Create Position Window
  107. {font:helv,pt:10,fclr:darkgreen,style:bold}\
  108. menu command to create a macro to move the window for us.
  109.  
  110. {macro:posdiskwatch}
  111.  
  112. {page}\
  113. {lmgn:20,rmgn:20,font:helv,pt:14}\
  114. Initializing Options
  115. {n,col:180,font:helv,pt:8,style:bold}(page 6 of 12)\
  116.  
  117. {n,pt:10,style:bold,fclr:darkgreen,col:50}\
  118. If you examine the Options menu of the DiskWatch program, you see that the
  119. default setting for the Low Disk Alarm feature is turned off
  120. (there is no check mark next to the menu command).
  121. We would like it to be turned on each time we start the program.
  122.  
  123. {n}{n}{col:50}
  124. We create a Mouse & Keyboard input macro to turn the Low
  125. Disk Alarm feature on.
  126. {macro:initdiskwatch}
  127.  
  128. {page}\
  129. {lmgn:20,rmgn:20,font:helv,pt:14}\
  130. Mouse & Keyboard Input Macros
  131. {n,col:180,font:helv,pt:8,style:bold}(page 7 of 12)\
  132.  
  133. {n,pt:10,style:bold,fclr:darkgreen,col:50}\
  134. You may have guessed that it is Mouse & Keyboard input
  135. macros with which this demonstration is created.
  136.  
  137. {n}{n}{col:50}
  138. Go ahead and execute the
  139. Mouse & Keyboard Input macro we just created by
  140. double clicking on the macro name
  141. {font:sys,pt:12,fclr:fstd,style:normal}init diskwatch
  142. {font:helv,pt:10,fclr:darkgreen,style:bold}within PM Assistant's
  143. macro display area.
  144.  
  145. {page}\
  146. {lmgn:20,rmgn:20,font:helv,pt:14}\
  147. Compound Macros
  148. {n,col:180,font:helv,pt:8,style:bold}(page 8 of 12)\
  149.  
  150. {n,pt:10,style:bold,fclr:darkgreen,col:50}\
  151. When we start the DiskWatch program, we would like the Alarm feature
  152. initialization macro to be run also.  We can accomplish this by
  153. combining the macros in a Compound Macro.
  154.  
  155. {n}{n}{col:50}
  156. First we create an empty Compound Macro named
  157. {font:sys,pt:12,fclr:fstd,style:normal}run diskwatch
  158. {font:helv,pt:10,fclr:darkgreen,style:bold}
  159.  
  160. {macro:compound}
  161.  
  162. {page}\
  163. {lmgn:20,rmgn:20,font:helv,pt:14}\
  164. Editing Macro Lists
  165. {n,col:180,font:helv,pt:8,style:bold}(page 9 of 12)\
  166.  
  167. {n,pt:10,style:bold,fclr:darkgreen,col:50}\
  168. We now use the
  169. {font:sys,pt:12,fclr:fstd,style:normal}Edit
  170. {font:helv,pt:10,fclr:darkgreen,style:bold}\
  171. menu commands to move macros into the body of the Compound macro.
  172.  
  173. {macro:edit}
  174.  
  175. {page}\
  176. {lmgn:20,rmgn:20,font:helv,pt:14}\
  177. Expanding Compound Macros
  178. {n,col:180,font:helv,pt:8,style:bold}(page 10 of 12)\
  179.  
  180. {n,pt:10,style:bold,fclr:darkgreen,col:50}\
  181. Notice that when we clicked on the plus/minus symbol in front of the
  182. Compound Macro's name in the macro-list display area we expanded and
  183. contracted the display of the Compound Macro's body.  This can be useful
  184. when working with many macros.
  185.  
  186. {n}{n}{col:50}
  187. To show how the Compound Macro is executed, we close the DiskWatch
  188. program and execute the Compound Macro just built.
  189.  
  190. {macro:execompound}
  191.  
  192.  
  193. {page}\
  194. {lmgn:20,rmgn:20,font:helv,pt:14}\
  195. Macro Files
  196. {n,col:180,font:helv,pt:8,style:bold}(page 11 of 12)\
  197.  
  198. {n,pt:10,style:bold,fclr:darkgreen,col:50}\
  199. Macro lists can be saved to and loaded from files.
  200. This demonstration version of PM Assistant does not allow you
  201. to save macro files.
  202.  
  203. {n}{n}{col:50}\
  204. We now close the DiskWatch and PM Assistant programs.
  205. {macro:justclose}
  206.  
  207. {page}\
  208. {lmgn:20,rmgn:20,font:helv,pt:14}\
  209. The End
  210. {n,col:180,font:helv,pt:8,style:bold}(page 12 of 12)\
  211.  
  212. {n,pt:10,style:bold,fclr:darkgreen,col:50}\
  213. You have seen a few of the capabilities of PM Assistant.  You may want
  214. to explore hot-keys, the other types of macros, and the
  215. Process Priority, Password Protection, Screen Saver and Speed Button features.
  216. You can find these menu commands in the Control menu.
  217.  
  218. {n}{n,col:50}For more information refer
  219. to the PM Assistant User's Guide, or the on-line help system accessible
  220. with the
  221. {font:sys,pt:12,fclr:fstd,style:normal}Help
  222. {font:helv,pt:10,fclr:darkgreen,style:bold}\
  223. menu commands.
  224.