home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / pma20.zip / A_SAMPLE.TXT < prev    next >
Text File  |  1994-08-16  |  14KB  |  269 lines

  1. Sample Macros
  2. This document describes the macros contained in the sample
  3. macro file A_SAMPLE.PMA.  At the end of this document is a
  4. quick-reference table of all the hot-keys used in the sample
  5. macro file.  Compound and Group macros are in bold face type.
  6.  
  7. MACRO NAME  DESCRIPTION
  8. Welcome     This Message macro displays a welcoming message
  9.             and demonstrates a use of a Message macro - to
  10.             document the contents of a macro file.  It is
  11.             scheduled to be displayed every time the macro
  12.             file is loaded.  You will probably want to disable
  13.             this automatic display by either deleting the
  14.             macro or rescheduling it with the Date & Time
  15.             button or menu command.
  16. PM AssistantThis Position Window macro brings PM Assistant to
  17.             the foreground.  Its hot-key is Ctrl+- (Control
  18.             key plus hyphen key).  You can bring PM Assistant
  19.             to the foreground at any time simply by typing
  20.             Ctrl+-.
  21. StartPrograms    This Group macro contains several Start
  22.             Program macros.  Group macros cannot be executed;
  23.             they are used to organize related macros together
  24.             within the macro list.  The Start Program macros
  25.             contained within this group are not generally
  26.             executed directly, but are referenced by Position
  27.             Window macros to start applications when needed.
  28.   Start Sys Editor Launches the system editor on file
  29.                LOG.LOG.  This macro is used by the 'Log
  30.                Activity' macro in the 'Powerful' macro group.
  31.   Start & Init Editor   This Compound macro starts and
  32.                initializes the OS/2 Enhanced Editor.
  33.                Initialization consists of turning on the
  34.                rotate buttons which you may prefer to always
  35.                have on.
  36.      Start Enhanced Editor Starts the OS/2 Enhanced Editor.
  37.      EPM rotate buttons    This Keyboard Input macro toggles
  38.                  the Enhanced Editor's rotate buttons settings
  39.                  by executing the Enhanced Editor's
  40.                  Options.Frame Controls.Rotate Buttons menu
  41.                  command.
  42.   Start Ami Pro    This Start Program macro starts the Ami
  43.                Pro word processor.  It expects Ami Pro to be
  44.                installed in the C:\AMIPRO directory.
  45.   Start PM RefThis Start Program macro starts the PM
  46.                Reference application.  It expects the IBM OS/2
  47.                development tool kit to have been installed.
  48.   Start OS/2 command    This Compound macro starts and
  49.                initializes an OS/2 windowed command prompt.
  50.                Initialization consists of executing a mode
  51.                80,100 command to increase the window buffer
  52.                size.
  53.      OS/2 commands    Starts the OS/2 command window.
  54.      mov OS/2 command This Position Window macro moves the
  55.                  OS/2 command window to far left.
  56.      set OS/2 mode    This Keyboard Input macro executes the
  57.                  mode 80,100 command.
  58.   Start Seek&Scan  This Start Program macro starts the Seek &
  59.                Scan file searching application.
  60.   Start To-Do List This Start Program macro Starts the OS/2
  61.                To-Do List application.
  62. PW Macros   This Group macro contains Several Position Window
  63.             macros to bring common applications to the
  64.             foreground.  Each macro's hot-key begins with
  65.             Ctrl+; (Control + Semicolon).  This is because
  66.             very few applications use Ctrl+; as an accelerator
  67.             key, so these hot-keys will not conflict with the
  68.             accelerator keys of any applications.
  69.   System Editor    This Position Window macro brings the
  70.                system editor to the foreground.  It executes
  71.                the 'Start Sys Editor' macro to start  the
  72.                system editor if needed.  The hot-key for this
  73.                macro is Ctrl+; s  (Control + Semicolon,
  74.                followed by 's').
  75.   Enhanced Editor  This Position Window macro brings the OS/2
  76.                Enhanced Editor to the foreground.  It executes
  77.                the 'Start Enhanced Editor' macro to start and
  78.                initialize the editor if needed.  The hot-key
  79.                for this macro is Ctrl+; e.
  80.   Ami Pro     This Position Window macro brings Ami Pro to
  81.                the foreground.  It executes the 'Start Ami
  82.                Pro' macro to start Ami Pro if it is not
  83.                already running.  The hot-key for this macro is
  84.                Ctrl+; a.
  85.   PM Ref      This Position Window macro brings the PM
  86.                Reference application to the foreground.  It
  87.                executes the 'Start PM Ref' macro if necessary.
  88.                The hot-key for this macro is Ctrl+; r.
  89.   OS/2 Window Up   This Position Window macro brings the OS/2
  90.                command window to the foreground.  It executes
  91.                the 'Start OS/2 command' macro to start the
  92.                command prompt if necessary.  The hot-key for
  93.                this macro is Ctrl+; o.
  94.   Seek&Scan UpThis Position Window macro brings the Seek &
  95.                Scan file search application to the foreground.
  96.                It executes the 'Start Seek&Scan' macro to
  97.                start the application if it is not already
  98.                running.  The hot-key for this macro is Ctrl+;
  99.                f.
  100.   To-Do List  This Position Window macro brings the OS/2 To-
  101.                Do List application to the foreground.  It
  102.                executes the 'Start To-Do List' macro to start
  103.                the To-Do List application if necessary.  The
  104.                hot-key for this macro is Ctrl+; t.
  105.   Main        Brings the Main folder window to the
  106.                foreground.
  107. Desktop     This Group macro contains several Compound macros
  108.             which contain Position Window macros to arrange
  109.             the windows on the screen.
  110.   Favorite    This Compound macro moves all commonly running
  111.                windows to a preferred position.  When the
  112.                screen gets cluttered after a few hours of work
  113.                use this macro to restore order.  The macros
  114.                contained within this Compound macro are not
  115.                described here.  The hot-key for this macro is
  116.                Ctrl+' f (Control + single quote, followed by
  117.                'f').
  118.   App & command    This Compound macro contains two Position
  119.                Window macros which arrange the foreground
  120.                application and a windowed command prompt
  121.                horizontally.  This arrangement is useful when
  122.                you are working with one application and
  123.                frequently executing OS/2 commands or character
  124.                based tools.  The hot-key for this macro is
  125.                Ctrl+' a.
  126.   App & Seek&Scan  This Compound macro arranges the
  127.                foreground application & Seek&Scan so both are
  128.                accessible.  The hot-key for this macro is
  129.                Ctrl+' s.
  130.   All Down    This Compound macro minimizes all commonly run
  131.                programs.
  132. PM Asst macros   This Group macro contains macros which
  133.             operate on PM Assistant itself.
  134.   Screen SaverThis Compound macro executes the
  135.                Control.Invoke.Screen Saver menu command.  The
  136.                hot-key for this macro is Ctrl+; i.
  137.   DeepSettingsThis Keyboard Input macro executes the
  138.                Macro.Settings menu command, then clicks the
  139.                Settings button to view the detailed settings
  140.                for the currently selected macro.  The hot-key
  141.                for this macro is Ctrl+s.
  142.   Make It Min This Keyboard Input macro sets the Minimize
  143.                option for the currently selected Position
  144.                Window macro.  The hot-key for this macro is
  145.                Ctrl+m.
  146.   Rename it min    This Keyboard Input macro renames the
  147.                currently selected macro from xxxName to
  148.                minName.  It is often used in conjunction with
  149.                the 'Make It Min' macro.  The hot-key for this
  150.                macro is Ctrl+v.
  151. Powerful    This Group macro contains three powerful Compound
  152.             macros.
  153.  
  154.   log activityThis Compound macro brings up a daily log in
  155.                the System Editor and inserts  the current date
  156.                & time.  The hot-key for this macro is Ctrl+;
  157.                l.
  158.      GetDate     This Compound macro gets the date from the
  159.                  Date & Time dialog box & puts it on
  160.                  clipboard.
  161.        PM Asst Up  Brings PM Assistant to the foreground.
  162.        Goto 2nd    Select the 2nd macro in list.  This is a
  163.                     macro which has not been scheduled.  To
  164.                     obtain the current date and time we must
  165.                     execute the Date & Time command on a macro
  166.                     which has never been scheduled.
  167.        Schedule DlgBrings up the Date & Time dialog box.
  168.        select date Select and copy the current date from the
  169.                     Date & Time dialog box.
  170.        System Editor2   Brings the System Editor to the
  171.                     foreground.  Starts it if necessary.
  172.        end & init  Goes to the end of the document in the
  173.                     System Editor and initializes today's log
  174.                     entry with the text 'Log for ' followed by
  175.                     today's date inserted from the clipboard.
  176.      GetTime     This Compound macro gets the time from the
  177.                  Date & Time dialog box & puts it on clipboard
  178.        PM Asst Up3 Brings PM Assistant to the foreground.
  179.        Schedule Dlg2    Brings up the Date & Time dialog box.
  180.        select time Copies the time from the Date & Time
  181.                     dialog box to the clipboard.
  182.      System Editor3   Brings the system editor to the
  183.                  foreground.
  184.      end & init2 Goes to the end of the document in the System
  185.                  Editor and pastes in the current time from
  186.                  the clipboard.
  187.   Find Selection   This Compound macro takes the current
  188.                selection in the Enhanced Editor, brings up the
  189.                Search dialog box, pastes the selection in and
  190.                begins a search for that text.  The hot-key for
  191.                this macro is Ctrl+Shft+f.
  192.      Enhanced Editor  Brings the OS/2 Enhanced Editor to the
  193.                  foreground.
  194.      copy        Copies the current selection to the
  195.                  clipboard.
  196.      Search Dialog    Executes the Search.Search menu command
  197.                  to bring up the search dialog box.
  198.      Paste Search String   Pastes the text into the search
  199.                  string field and hits Enter to begin the
  200.                  search.
  201.   Reverse Search   This Compound macro reverses the search
  202.                direction in the OS/2 Enhanced Editor.  The hot-
  203.                key for this macro is Ctrl+Shft+r.
  204. Timed       This Group macro contains several macros which are
  205.             scheduled to execute automatically.
  206.  
  207.   Backup      This Compound macro copies the important files
  208.                from C:\data to A:\.  You will need to modify
  209.                this macro to copy your particular files.
  210.      Insert disk This Message macro requests the user to
  211.                  insert a backup disk in drive A:\.  If you
  212.                  backup your files to a network drive you
  213.                  should remove this macro.
  214.      mydata.txt  This Start Program macro copies
  215.                  C:\data\mydata.txt to A:\.
  216.      summary.txt This Start Program macro copies
  217.                  C:\data\summary.txt to A:\.
  218.   Mortgage    This Message macro is scheduled to remind you
  219.                to mail the mortgage check on the first day of
  220.                every month.
  221.   Print AgendaThis Compound macro prints the weekly meeting
  222.                agenda file \agenda.txt every Monday at 10:00
  223.                AM.
  224.      Start EditorLaunches the OS/2 Enhanced Editor on the file
  225.                  \agenda.txt.
  226.      Print file  Prints the current file in the OS/2 Enhanced
  227.                  Editor.
  228.   Staff Meeting    This Message macro reminds you to attend
  229.                the weekly staff meeting every Monday at 10:00
  230.                AM.
  231.   Dinner 7/5/94    This Message macro is scheduled to remind
  232.                you of a fictional dinner at 4:30 PM, 7/3/1994.
  233.  
  234. Sample Macros Hot-keys Reference
  235.  
  236. Hot-key     Macro
  237. Ctrl+-      Brings PM Assistant to the foreground.
  238. Ctrl+; s    Brings the System Editor to the foreground.
  239. Ctrl+; e    Brings the Enhanced Editor to the foreground.
  240. Ctrl+; a    Brings Ami Pro to the foreground.
  241. Ctrl+; r    Brings the PM Reference application to the
  242.             foreground.
  243. Ctrl+; o    Brings an OS/2 windowed command prompt to the
  244.             foreground.
  245. Ctrl+; f    Brings the OS/2 Seek & Scan application to the
  246.             foreground.
  247. Ctrl+; t    Brings the OS/2 To-Do list application to the
  248.             foreground.
  249. Ctrl+; m    Brings the Main folder window to the foreground.
  250. Ctrl+Æ f    Moves windows to a ôfavoriteö arrangement of
  251.             windows on the screen.
  252. Ctrl+Æ a    Arranges the foreground application and a windows
  253.             command prompt horizontally on the screen.
  254. Alt+Down    Minimizes most windows..
  255. Ctrl+; i    Starts the PM Assistant screen saver.
  256. Ctrl+s      Brings up the detailed settings dialog box for the
  257.             currently selected macro.
  258. Ctrl+m      Sets the currently selected Position Window macro
  259.             so that it minimizes the window.
  260. Ctrl+v      Renames the currently selected Position Window
  261.             macro to æminNameÆ.
  262. Ctrl+; l    Brings up a daily log and enters the current date
  263.             and time.
  264. Ctrl+Shft+F Begins a search of the current selection in the
  265.             Enhanced Editor.
  266. Ctrl+Shft+R Toggles the direction of the search in the
  267.             Enhanced Editor.
  268.  
  269.