home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: WPS_PM
/
WPS_PM.zip
/
PMASST.ZIP
/
PMADEMO.PMD
< prev
next >
Wrap
Text File
|
1991-05-07
|
8KB
|
224 lines
{comment: PM Assistant demonstration file. Copyright (C) 1990 Utilis Inc.}\
\
{lmgn:20,rmgn:20,font:helv,pt:14}\
{title:PM Assistant Demo}\
{mfile:pmademo.pma}\
Loading data, please wait...
{macro:posdemo}\
{page}\
{lmgn:20,rmgn:20,font:helv,pt:14}\
A PM Assistant Demonstration\
{n,col:180,font:helv,pt:8,style:bold}(page 1 of 12)\
\
{n,pt:10,style:bold,fclr:darkgreen,col:50}\
With this 10 minute demonstration you will see some of the
capabilities of PM Assistant and learn how PM Assistant works.
{n}{n}{col:50}
The demonstration consists of explanatory text accompanied by animated
use of PM Assistant. At the bottom of this window is a
{font:sys,pt:12,fclr:fstd,style:normal}Space=Continue
{font:helv,pt:10,fclr:darkgreen,style:bold}\
button. When you have read the text, push the button (or the space bar)
to observe a demonstration of what the text discussed and to go onto
the next page of text. During these animated portions of the demonstration
you will see the mouse pointer move automatically.
\
{macro:startpmasst}\
\
{page}\
{lmgn:20,rmgn:20,font:helv,pt:14}\
The PM Assistant Display\
{n,col:180,font:helv,pt:8,style:bold}(page 2 of 12)\
\
{n,pt:10,style:bold,fclr:darkgreen,col:50}\
The PM Assistant display consists of a macro-list display area (presently
displaying
{font:sys,pt:12,fclr:fstd,style:normal}No Macros\
{font:helv,pt:10,fclr:darkgreen,style:bold}\
), and a status/help line at the bottom (presently displaying
{fclr:fstd,style:normal}Ready\
{fclr:darkgreen,style:bold}\
). As you select menus the status/help line
displays a brief description of the selected menu command.
{n,fclr:fstd,style:normal,pt:14}\
Another Application
{n,pt:10,style:bold,fclr:darkgreen,col:50}\
We will demonstrate PM Assistant by creating macros to manipulate another
application which comes with PM Assistant: DiskWatch. This application
is a simple tool which monitors your hard disk free space.
\
{page}\
{lmgn:20,rmgn:20,font:helv,pt:14}\
A Start Program Macro
{n,col:180,font:helv,pt:8,style:bold}(page 3 of 12)\
{n,pt:10,style:bold,fclr:darkgreen,col:50}\
First we create a macro which starts the DiskWatch program.
We create the macro by choosing the
{font:sys,pt:12,fclr:fstd,style:normal}Macro Create Start Program\
{font:helv,pt:10,fclr:darkgreen,style:bold} menu command and filling
in dialogue boxes with information about the macro and the program to
be started.
{macro:startdiskwatch}
{page}\
{lmgn:20,rmgn:20,font:helv,pt:14}\
Executing A Macro
{n,col:180,font:helv,pt:8,style:bold}(page 4 of 12)\
{n,pt:10,style:bold,fclr:darkgreen,col:50}\
The macro we created is now listed in the macro-list
display area. This display area lists the macro's hot-key (which for this
macro is blank), an abbreviation for the macro type (for this macro
{font:sys,pt:12,fclr:fstd,style:normal}SP
{font:helv,pt:10,fclr:darkgreen,style:bold}\
for Start Program), the macro's name (\
{font:sys,pt:12,fclr:fstd,style:normal}start diskwatch\
{font:helv,pt:10,fclr:darkgreen,style:bold}\
), and the macro's comment (\
{font:sys,pt:12,fclr:fstd,style:normal}Start the diskwatch program\
{font:helv,pt:10,fclr:darkgreen,style:bold})
{n}{n}{col:50}
We execute the macro by double-clicking on the macro in
the macro-list display area. The macro will start the Disk Watch program.
{macro:exediskwatch}
{page}\
{lmgn:20,rmgn:20,font:helv,pt:14}\
Window Placement
{n,col:180,font:helv,pt:8,style:bold}(page 5 of 12)\
{n,pt:10,style:bold,fclr:darkgreen,col:50}\
Notice that when started, the DiskWatch program is placed in the middle
of the screen. We would rather the window be placed and sized where we
put it manually.
{n}{n}{col:50}
We use the
{font:sys,pt:12,fclr:fstd,style:normal}Macro Create Position Window
{font:helv,pt:10,fclr:darkgreen,style:bold}\
menu command to create a macro to move the window for us.
{macro:posdiskwatch}
{page}\
{lmgn:20,rmgn:20,font:helv,pt:14}\
Initializing Options
{n,col:180,font:helv,pt:8,style:bold}(page 6 of 12)\
{n,pt:10,style:bold,fclr:darkgreen,col:50}\
If you examine the Options menu of the DiskWatch program, you see that the
default setting for the Low Disk Alarm feature is turned off
(there is no check mark next to the menu command).
We would like it to be turned on each time we start the program.
{n}{n}{col:50}
We create a Mouse & Keyboard input macro to turn the Low
Disk Alarm feature on.
{macro:initdiskwatch}
{page}\
{lmgn:20,rmgn:20,font:helv,pt:14}\
Mouse & Keyboard Input Macros
{n,col:180,font:helv,pt:8,style:bold}(page 7 of 12)\
{n,pt:10,style:bold,fclr:darkgreen,col:50}\
You may have guessed that it is Mouse & Keyboard input
macros with which this demonstration is created.
{n}{n}{col:50}
Go ahead and execute the
Mouse & Keyboard Input macro we just created by
double clicking on the macro name
{font:sys,pt:12,fclr:fstd,style:normal}init diskwatch
{font:helv,pt:10,fclr:darkgreen,style:bold}within PM Assistant's
macro display area.
{page}\
{lmgn:20,rmgn:20,font:helv,pt:14}\
Compound Macros
{n,col:180,font:helv,pt:8,style:bold}(page 8 of 12)\
{n,pt:10,style:bold,fclr:darkgreen,col:50}\
When we start the DiskWatch program, we would like the Alarm feature
initialization macro to be run also. We can accomplish this by
combining the macros in a Compound Macro.
{n}{n}{col:50}
First we create an empty Compound Macro named
{font:sys,pt:12,fclr:fstd,style:normal}run diskwatch
{font:helv,pt:10,fclr:darkgreen,style:bold}
{macro:compound}
{page}\
{lmgn:20,rmgn:20,font:helv,pt:14}\
Editing Macro Lists
{n,col:180,font:helv,pt:8,style:bold}(page 9 of 12)\
{n,pt:10,style:bold,fclr:darkgreen,col:50}\
We now use the
{font:sys,pt:12,fclr:fstd,style:normal}Edit
{font:helv,pt:10,fclr:darkgreen,style:bold}\
menu commands to move macros into the body of the Compound macro.
{macro:edit}
{page}\
{lmgn:20,rmgn:20,font:helv,pt:14}\
Expanding Compound Macros
{n,col:180,font:helv,pt:8,style:bold}(page 10 of 12)\
{n,pt:10,style:bold,fclr:darkgreen,col:50}\
Notice that when we clicked on the plus/minus symbol in front of the
Compound Macro's name in the macro-list display area we expanded and
contracted the display of the Compound Macro's body. This can be useful
when working with many macros.
{n}{n}{col:50}
To show how the Compound Macro is executed, we close the DiskWatch
program and execute the Compound Macro just built.
{macro:execompound}
{page}\
{lmgn:20,rmgn:20,font:helv,pt:14}\
Macro Files
{n,col:180,font:helv,pt:8,style:bold}(page 11 of 12)\
{n,pt:10,style:bold,fclr:darkgreen,col:50}\
Macro lists can be saved to and loaded from files.
This demonstration version of PM Assistant does not allow you
to save macro files.
{n}{n}{col:50}\
We now close the DiskWatch and PM Assistant programs.
{macro:justclose}
{page}\
{lmgn:20,rmgn:20,font:helv,pt:14}\
The End
{n,col:180,font:helv,pt:8,style:bold}(page 12 of 12)\
{n,pt:10,style:bold,fclr:darkgreen,col:50}\
You have seen a few of the capabilities of PM Assistant. You may want
to explore hot-keys, the other types of macros, and the
Process Priority, Password Protection, Screen Saver and Speed Button features.
You can find these menu commands in the Control menu.
{n}{n,col:50}For more information refer
to the PM Assistant User's Guide, or the on-line help system accessible
with the
{font:sys,pt:12,fclr:fstd,style:normal}Help
{font:helv,pt:10,fclr:darkgreen,style:bold}\
menu commands.