home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / pma20.zip / TUTORIAL.TXT < prev   
Text File  |  1994-08-16  |  8KB  |  173 lines

  1.                        Utilis Advanced P.O. Box 367
  2.                               Tools    Redmond, WA  98073
  3.                               Now      Ph (206) 467-4025
  4.                                        Fax (206) 869-4981
  5.                               
  6. 5 Minute Tutorial
  7.  
  8. Take this brief tutorial to learn how to effectively use PM Assistant.
  9.  
  10. =====Hot-keys & applications
  11. We first load the sample macros file and find out how hot-
  12. keys work:
  13. 1.   Execute PM Assistant by double clicking on its icon.
  14.   PM Assistant's program icon is placed on your desktop by the
  15.   installation program.
  16. 2.   Choose the File Open menu command and load the file
  17.   A_SAMPLE.PMA.
  18. 3.   Dismiss the Welcome message macro by pressing the
  19. Done button.
  20. 4.   PM Assistant will display a list of macros.
  21. 5.   Notice that Ctrl+- (Control + hyphen) is the hot-key
  22.   for the PM Assistant macro.  To use this hot-key you would
  23.   press the Control key, hold it down, and then press the
  24.   hyphen key.
  25. 6.   The PM Assistant macro is a Position Window macro
  26.   which brings PM Assistant to the foreground.  The PM
  27.   Assistant macro can be executed by typing "Ctrl+-"  -its hot-
  28.   key- from any Presentation Manager application.
  29. 7.   Click on another applications window and drag the
  30.   window to obscure the PM Assistant window.
  31. 8.   Type Ctrl+-, the hot-key for the PM Assistant macro.
  32. 9.   Notice that the PM Assistant window is now in the
  33. foreground ready for use.
  34.  
  35. =====Creating Position Window macros
  36. We now create a list of macros to move your applications
  37. windows:
  38. 1.   Choose the Macro Build Arrangement menu command in PM
  39.   Assistant.  To do this click the Macro menu, then click on
  40.   the Build Arrangement menu command.
  41. 2.   Enter a macro name into the Name field, such as 'My
  42.   Desktop'.
  43. 3.   Click the Done button.
  44. 4.   Notice the Compound Macro you just created, named My
  45.   Desktop, is now selected in the macro list.  Just below
  46.   this macro, within the brackets, is a list of Position
  47.   Window macros which were automatically created.  Each macro
  48.   moves one of your applications windows to their current
  49.   position on the desktop.  Executing the 'My Desktop'
  50.   Compound Macro executes all the contained macros, thereby
  51.   restoring all applications to their current position.  You
  52.   can also execute each Position Window macro individually to
  53.   move a single applications window.
  54. 5.   Click with the right mouse button on one of the created
  55.   Position Window macros to bring up the Macro Information
  56.   dialog box.
  57. 6.   Enter a hot-key in the Hot-key field, perhaps
  58. Ctrl+Space.  Hot-keys can be any combination of
  59. Ctrl+Alt+Shift with any key, and can be more than one
  60. keystroke long.
  61. 7.   Click the Done button.
  62. 8.   Notice the hot-key you entered is now displayed in the
  63. leftmost column.
  64. 9.   Position Window macros can also be created with the
  65.   Create Position Window Macro menu command.
  66.  
  67. =====Minimizing all your windows
  68. We now create a Compound Macro to minimize all your windows:
  69. 1.   Select the 'My Desktop' Compound Macro you just created
  70.   by clicking on it.
  71. 2.   Choose Edit Copy to copy the entire macro (i.e., both
  72.   the Compound macro and the contained Position Window macros)
  73.   to PM Assistants macro clipboard.
  74. 3.   Select the last macro in the macro list by scrolling
  75.   down to it and clicking on it.
  76. 4.   Choose Edit Paste to paste a copy of the My Desktop
  77.   macro at the end of the list.  Notice this new macro is
  78.   automatically renamed 'My Desktop2'.
  79. 5.   Click with the right mouse button on the first Position
  80.   Window (PW) macro listed in the compound macro My
  81.   Desktop2.  It is the macro just below My Desktop2, and
  82.   will be named mov<application name> or min<application
  83.   name>.
  84. 6.   You now see the Macro Information dialog box describing
  85.   the PW macro.  Click the Settings... button.
  86. 7.   You now see the Position Window dialog box.  Clear the
  87.   Size window and Move window check boxes.  Set the
  88.   Minimize window check box.  (Note: if that window was
  89.   minimized when you created the 'MyDesktop' macro, you need
  90.   not change the check boxes - they will be configured to
  91.   minimize the window already).
  92. 8.   Click the OK button.
  93. 9.   Repeat this process for all the macros within the My
  94.   Desktop2 macro.  You will want to use the supplied macro
  95.   Make It Min, whose hot-key is Control+m.  This macro takes
  96.   you directly to the Position Window dialog box and changes
  97.   the settings for you.  The Make It Min macro is an example
  98.   of a Keyboard Input macro automating PM Assistant itself.
  99. 10.  Execute the My Desktop2 macro.  Notice that all your
  100.   applications have been minimized.
  101.  
  102. =====Executing menu commands with Keyboard Input macros
  103. We now create a Keyboard Input macro to execute any menu
  104. command:
  105. 1.   Type Ctrl+- to bring PM Assistants window to the
  106.   foreground.
  107. 2.   Double click on the supplied Start Sys Editor macro
  108.   to execute this Start Program macro.  This macro starts the
  109.   OS/2 system editor application.
  110. 3.   Notice that the System Editor has no accelerator key
  111.   for the File Open menu command.  Suppose you open different
  112.   files frequently and would prefer not to click and drag the
  113.   menus with the mouse every time you wish to open a new file.
  114.   We will therefore create a macro to choose the File Open
  115.   menu command for you.
  116. 4.   Choose the Create Keyboard Input Macro menu command in
  117. PM Assistant.
  118. 5.   Fill in a name for the macro, say "FileOpen", and a hot-
  119. key, perhaps "Control+o 1".  This is a two keystroke hot-
  120. key, the first keystroke is Control+o, the second keystroke
  121. is the number 1.
  122. 6.   Click the Settings button.
  123. 7.   Type "F10 fo" into the Keystrokes edit field.  The
  124. function key F10 is the menu activation keystroke.  The "fo"
  125. keys then select the File menu and the Open menu command.
  126. 8.   Click the OK button.  Notice your new macro FileOpen
  127. with the hot-key Ctrl+o 1 is displayed in the macro list.
  128. 9.   Bring the System Editor application to the foreground
  129. (use the provided System Editor macro whose hot-key is
  130. "Ctrl+; s" if you wish).  Type "Ctrl+O 1".  Take care to
  131. hold the Control key down while pressing the O key, and
  132. release the Control key before pressing the 1 key.  Notice
  133. that by executing our FileOpen macro with its hot-key, the
  134. File Open menu command has been executed.
  135. 10.  Click the Cancel button in the File Open dialog box.
  136.  
  137. =====Manipulating dialog boxes with Keyboard Input macros
  138. You can change any dialog box settings with Keyboard Input
  139. macros.  Suppose you often switch to the file ômytext.txtö
  140. while browsing files with the System Editor.  We now create
  141. a macro to do that:
  142. 1.   Type Ctrl+- to bring PM Assistant to the foreground.
  143. 2.   We will now drag-n-drop a macro to copy it.  This is
  144. the same as a Edit Copy /Edit Paste menu command, but is
  145. much quicker.
  146. 3.   Click down on the macro 'FileOpen' with the Left mouse
  147. button, and drag downward with the button still depressed.
  148. Notice a small horizontal line appears below the macro name.
  149. This line indicates where the macro will be inserted.
  150. 4.   Press and hold the control key while dragging the
  151. mouse.  This signals PM Assistant to copy the macro rather
  152. than just moving it.
  153. 5.   Release the mouse button and notice the new macro
  154. 'FileOpen2' is inserted in the list.
  155. 6.   Click on the new 'FileOpen2' macro with the right mouse
  156. button to bring up the Macro Information dialog box..
  157. 7.   Enter "Ctrl+o 2" as the hot-key.
  158. 8.   Click the Settings button.
  159. 9.   Type the keystrokes "Home Shft+End mytext.txt Enter" at
  160. the end of the Keystrokes edit field (do not erase the "F10
  161. fo" keystrokes already there).  When this macro is executed
  162. and the keystrokes played to the File Open dialog box, these
  163. keystrokes select the contents of the Open filename edit
  164. field and type in mytext.txt.
  165. 10.  Click the OK button.
  166. 11.  Bring the System Editor application to the foreground
  167.   and execute the FileOpen2 macro by typing "Ctrl+O 2".
  168.   Notice the File Open menu command is executed and
  169.   "mytext.txt" is entered into the dialog box.
  170.  
  171. To learn more about PM Assistant experiment with the macros
  172. provided in the A_SAMPLE.PMA file.
  173.