home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
educ
/
pctype43.zip
/
PCT3.ZIP
/
SAMPLE.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1991-01-08
|
3KB
|
108 lines
This file will describe the rudiments of the Menu system and using the
Command line.
First press Esc to move the cursor to the Command Line. Next type
"DOS dir sample.*"
(without the quotes) - then press the Enter key. You will need to
press another key when the directory is finished to return to this
file. That is how DOS commands may be issued from within PC-Type.
Making sure the cursor is still on the Command Line, type "/*<--"
without the quotes. Then press Enter. The cursor should have moved
to the first line of this paragraph. Now press Enter again.
*<--
As you can see, this simple command finds the string of characters
specified and moves the cursor to that location. Now press the Esc
key to move the actual cursor from the Command Line to that location.
Now press F10 - an important key for Keystroke macros.
*<--
As you can see, F10 executes whatever command is on the Command Line
but insures the cursor is in the Text Area at the completion of the
command. Press F10 again.
*<--
We will now edit another file by using a command on the Command Line,
and then edit another file by using the menus. Move the cursor to the
Command Line with the Esc key and type "edit sample.cm2" (without the
quotes) and press the Enter key.
Having returned to this screen, we will now edit the same file using
the menus - first press the PgDn key.
Since you have already performed the instructions
in SAMPLE.CM2, after entering that file, just
press F4 to return to this file.
Press F2 to bring up the Main Menu and press the E
key to select the option (E)dit/get. Now press
the E key again to specify "Edit". In the field
provided at the bottom of your screen, type
"SAMPLE.CM2" (without the quotes) and press the
Enter key.
Now press the T key to specify "Total" file. That
is how to edit another file from the menus.
Now press F2, then the J key, then the 6 key.
As you can see, most commands available within PC-Type may be reached
through the menus, even though a keystroke is available as a more
direct route. One keystroke which is not available is cross-hairs.
Press Esc to remove the Jump Options menu, then Move the cursor to the
X below, hold down the Alt key and the press the + key (the one on the
top line of keys next to the numbers).
X
Cross-hairs can be quite useful when lining up text visually. The
cross-hairs will remain until you press another key.
Before quitting this file, move the cursor to the Command Line. Now
hold down the Ctrl key and press the up or down arrow a number of
times. As you can see, the commands you used on the Command Line are
saved and may be reused. Up to 10 commands are saved.
Now press F4 to exit this section of the tutorial.