home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
pma20.zip
/
A_SAMPLE.TXT
< prev
next >
Wrap
Text File
|
1994-08-16
|
14KB
|
269 lines
Sample Macros
This document describes the macros contained in the sample
macro file A_SAMPLE.PMA. At the end of this document is a
quick-reference table of all the hot-keys used in the sample
macro file. Compound and Group macros are in bold face type.
MACRO NAME DESCRIPTION
Welcome This Message macro displays a welcoming message
and demonstrates a use of a Message macro - to
document the contents of a macro file. It is
scheduled to be displayed every time the macro
file is loaded. You will probably want to disable
this automatic display by either deleting the
macro or rescheduling it with the Date & Time
button or menu command.
PM AssistantThis Position Window macro brings PM Assistant to
the foreground. Its hot-key is Ctrl+- (Control
key plus hyphen key). You can bring PM Assistant
to the foreground at any time simply by typing
Ctrl+-.
StartPrograms This Group macro contains several Start
Program macros. Group macros cannot be executed;
they are used to organize related macros together
within the macro list. The Start Program macros
contained within this group are not generally
executed directly, but are referenced by Position
Window macros to start applications when needed.
Start Sys Editor Launches the system editor on file
LOG.LOG. This macro is used by the 'Log
Activity' macro in the 'Powerful' macro group.
Start & Init Editor This Compound macro starts and
initializes the OS/2 Enhanced Editor.
Initialization consists of turning on the
rotate buttons which you may prefer to always
have on.
Start Enhanced Editor Starts the OS/2 Enhanced Editor.
EPM rotate buttons This Keyboard Input macro toggles
the Enhanced Editor's rotate buttons settings
by executing the Enhanced Editor's
Options.Frame Controls.Rotate Buttons menu
command.
Start Ami Pro This Start Program macro starts the Ami
Pro word processor. It expects Ami Pro to be
installed in the C:\AMIPRO directory.
Start PM RefThis Start Program macro starts the PM
Reference application. It expects the IBM OS/2
development tool kit to have been installed.
Start OS/2 command This Compound macro starts and
initializes an OS/2 windowed command prompt.
Initialization consists of executing a mode
80,100 command to increase the window buffer
size.
OS/2 commands Starts the OS/2 command window.
mov OS/2 command This Position Window macro moves the
OS/2 command window to far left.
set OS/2 mode This Keyboard Input macro executes the
mode 80,100 command.
Start Seek&Scan This Start Program macro starts the Seek &
Scan file searching application.
Start To-Do List This Start Program macro Starts the OS/2
To-Do List application.
PW Macros This Group macro contains Several Position Window
macros to bring common applications to the
foreground. Each macro's hot-key begins with
Ctrl+; (Control + Semicolon). This is because
very few applications use Ctrl+; as an accelerator
key, so these hot-keys will not conflict with the
accelerator keys of any applications.
System Editor This Position Window macro brings the
system editor to the foreground. It executes
the 'Start Sys Editor' macro to start the
system editor if needed. The hot-key for this
macro is Ctrl+; s (Control + Semicolon,
followed by 's').
Enhanced Editor This Position Window macro brings the OS/2
Enhanced Editor to the foreground. It executes
the 'Start Enhanced Editor' macro to start and
initialize the editor if needed. The hot-key
for this macro is Ctrl+; e.
Ami Pro This Position Window macro brings Ami Pro to
the foreground. It executes the 'Start Ami
Pro' macro to start Ami Pro if it is not
already running. The hot-key for this macro is
Ctrl+; a.
PM Ref This Position Window macro brings the PM
Reference application to the foreground. It
executes the 'Start PM Ref' macro if necessary.
The hot-key for this macro is Ctrl+; r.
OS/2 Window Up This Position Window macro brings the OS/2
command window to the foreground. It executes
the 'Start OS/2 command' macro to start the
command prompt if necessary. The hot-key for
this macro is Ctrl+; o.
Seek&Scan UpThis Position Window macro brings the Seek &
Scan file search application to the foreground.
It executes the 'Start Seek&Scan' macro to
start the application if it is not already
running. The hot-key for this macro is Ctrl+;
f.
To-Do List This Position Window macro brings the OS/2 To-
Do List application to the foreground. It
executes the 'Start To-Do List' macro to start
the To-Do List application if necessary. The
hot-key for this macro is Ctrl+; t.
Main Brings the Main folder window to the
foreground.
Desktop This Group macro contains several Compound macros
which contain Position Window macros to arrange
the windows on the screen.
Favorite This Compound macro moves all commonly running
windows to a preferred position. When the
screen gets cluttered after a few hours of work
use this macro to restore order. The macros
contained within this Compound macro are not
described here. The hot-key for this macro is
Ctrl+' f (Control + single quote, followed by
'f').
App & command This Compound macro contains two Position
Window macros which arrange the foreground
application and a windowed command prompt
horizontally. This arrangement is useful when
you are working with one application and
frequently executing OS/2 commands or character
based tools. The hot-key for this macro is
Ctrl+' a.
App & Seek&Scan This Compound macro arranges the
foreground application & Seek&Scan so both are
accessible. The hot-key for this macro is
Ctrl+' s.
All Down This Compound macro minimizes all commonly run
programs.
PM Asst macros This Group macro contains macros which
operate on PM Assistant itself.
Screen SaverThis Compound macro executes the
Control.Invoke.Screen Saver menu command. The
hot-key for this macro is Ctrl+; i.
DeepSettingsThis Keyboard Input macro executes the
Macro.Settings menu command, then clicks the
Settings button to view the detailed settings
for the currently selected macro. The hot-key
for this macro is Ctrl+s.
Make It Min This Keyboard Input macro sets the Minimize
option for the currently selected Position
Window macro. The hot-key for this macro is
Ctrl+m.
Rename it min This Keyboard Input macro renames the
currently selected macro from xxxName to
minName. It is often used in conjunction with
the 'Make It Min' macro. The hot-key for this
macro is Ctrl+v.
Powerful This Group macro contains three powerful Compound
macros.
log activityThis Compound macro brings up a daily log in
the System Editor and inserts the current date
& time. The hot-key for this macro is Ctrl+;
l.
GetDate This Compound macro gets the date from the
Date & Time dialog box & puts it on
clipboard.
PM Asst Up Brings PM Assistant to the foreground.
Goto 2nd Select the 2nd macro in list. This is a
macro which has not been scheduled. To
obtain the current date and time we must
execute the Date & Time command on a macro
which has never been scheduled.
Schedule DlgBrings up the Date & Time dialog box.
select date Select and copy the current date from the
Date & Time dialog box.
System Editor2 Brings the System Editor to the
foreground. Starts it if necessary.
end & init Goes to the end of the document in the
System Editor and initializes today's log
entry with the text 'Log for ' followed by
today's date inserted from the clipboard.
GetTime This Compound macro gets the time from the
Date & Time dialog box & puts it on clipboard
PM Asst Up3 Brings PM Assistant to the foreground.
Schedule Dlg2 Brings up the Date & Time dialog box.
select time Copies the time from the Date & Time
dialog box to the clipboard.
System Editor3 Brings the system editor to the
foreground.
end & init2 Goes to the end of the document in the System
Editor and pastes in the current time from
the clipboard.
Find Selection This Compound macro takes the current
selection in the Enhanced Editor, brings up the
Search dialog box, pastes the selection in and
begins a search for that text. The hot-key for
this macro is Ctrl+Shft+f.
Enhanced Editor Brings the OS/2 Enhanced Editor to the
foreground.
copy Copies the current selection to the
clipboard.
Search Dialog Executes the Search.Search menu command
to bring up the search dialog box.
Paste Search String Pastes the text into the search
string field and hits Enter to begin the
search.
Reverse Search This Compound macro reverses the search
direction in the OS/2 Enhanced Editor. The hot-
key for this macro is Ctrl+Shft+r.
Timed This Group macro contains several macros which are
scheduled to execute automatically.
Backup This Compound macro copies the important files
from C:\data to A:\. You will need to modify
this macro to copy your particular files.
Insert disk This Message macro requests the user to
insert a backup disk in drive A:\. If you
backup your files to a network drive you
should remove this macro.
mydata.txt This Start Program macro copies
C:\data\mydata.txt to A:\.
summary.txt This Start Program macro copies
C:\data\summary.txt to A:\.
Mortgage This Message macro is scheduled to remind you
to mail the mortgage check on the first day of
every month.
Print AgendaThis Compound macro prints the weekly meeting
agenda file \agenda.txt every Monday at 10:00
AM.
Start EditorLaunches the OS/2 Enhanced Editor on the file
\agenda.txt.
Print file Prints the current file in the OS/2 Enhanced
Editor.
Staff Meeting This Message macro reminds you to attend
the weekly staff meeting every Monday at 10:00
AM.
Dinner 7/5/94 This Message macro is scheduled to remind
you of a fictional dinner at 4:30 PM, 7/3/1994.
Sample Macros Hot-keys Reference
Hot-key Macro
Ctrl+- Brings PM Assistant to the foreground.
Ctrl+; s Brings the System Editor to the foreground.
Ctrl+; e Brings the Enhanced Editor to the foreground.
Ctrl+; a Brings Ami Pro to the foreground.
Ctrl+; r Brings the PM Reference application to the
foreground.
Ctrl+; o Brings an OS/2 windowed command prompt to the
foreground.
Ctrl+; f Brings the OS/2 Seek & Scan application to the
foreground.
Ctrl+; t Brings the OS/2 To-Do list application to the
foreground.
Ctrl+; m Brings the Main folder window to the foreground.
Ctrl+Æ f Moves windows to a ôfavoriteö arrangement of
windows on the screen.
Ctrl+Æ a Arranges the foreground application and a windows
command prompt horizontally on the screen.
Alt+Down Minimizes most windows..
Ctrl+; i Starts the PM Assistant screen saver.
Ctrl+s Brings up the detailed settings dialog box for the
currently selected macro.
Ctrl+m Sets the currently selected Position Window macro
so that it minimizes the window.
Ctrl+v Renames the currently selected Position Window
macro to æminNameÆ.
Ctrl+; l Brings up a daily log and enters the current date
and time.
Ctrl+Shft+F Begins a search of the current selection in the
Enhanced Editor.
Ctrl+Shft+R Toggles the direction of the search in the
Enhanced Editor.