home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 December
/
simtel1292_SIMTEL_1292_Walnut_Creek.iso
/
msdos
/
sysutl
/
jobs32a2.arc
/
SMENU.JMT
< prev
Wrap
INI File
|
1987-11-01
|
4KB
|
124 lines
[* SMENU.JMT - This file defines a simple menu that may be easily
customized or adapted for your needs. It is provided
as an example of macro programming.
Only 3 sample commands have been implemented in this menu. To change
or add new entries, do the following:
1. Type the entry name next to the appropriate function key
label in the menu display window.
2. Add the function key to the legal keystroke list, if its not
already there.
3. Define a macro (either with your editor or in Learn Mode) to
perform the new task. Assign this macro to its function key
in the SAMPMENU.JM file.
You can easily make as many of these menus as you need by copying the
the macro file SAMPMENU to a new file and redefining its macros.
This very simple menu arrangment is entered by running the macro
named GO-SMENU that is in the default macro file JMAC-SW.JM. After
exiting the menu, the current macro file is automatically changed back
to the default file by the auto macro named GODEFMAC.
Note: The macro commands are in uppercase and the comments in
lowercase for clarity. The macro language is not case
sensitive, so you may use whatever convention pleases you.
Tabs have been removed for distribution, but may be used
freely when creating JMT files. (except within window
definitions).
*]
[MACRO][SMENU]
[START][GLOBAL]
[CALL]["GOTOTREE"] [* make sure we begin at a tree screen *]
~S[OFF] [* turn screen off, JOBS' display is not *]
[* needed for now *]
[* begin menu display - draw full screen background for menu *]
[WIND][BORDER][CLEAR]1,0,0,1,1,80,25
~HSAMPLE MENU~H
F1
F2 RUN CHKDSK
F3
F4 FORMAT DRIVE A:
F5
F6 FORMAT DRIVE B:
F7
F8
F9
F10
Press function key to the left of desired choice.
Press <Esc> to cancel menu and return to JOBS.
[ENDWIND]
[* draw a box around the menu *]
[WIND][BORDER]1,0,0,22,6,59,17
[ENDWIND]
[* add a vertical line to separate function keys from descriptions *]
[WIND]1,0,0,29,6,29,17
╤
│
│
│
│
│
│
│
│
│
│
╧
[ENDWIND]
[* add a label in the upper left-hand corner *]
[WIND]1,0,0,3,1,21,1
MENU: SAMPLE ═══════
[ENDWIND]
[* limit allowable keystrokes *]
[LEGAL]
[F-2][F-4][F-6][ESC]
[ENDLEGAL]
~H[OFF] [* disable JOBS' help key so *]
[* menu can use it *]
[ASK][SELECT] [* ask for user's choice. won't *]
[* return if a legal macro key is *]
[* selected *]
[* user must have pressed <Esc>, clean up and exit *]
[ILLEGAL][ENDLEGAL] [* make all keys legal again *]
[* clear the screen *]
[WIND][CLEAR]1,0,0,1,1,80,25
[ENDWIND]
~S[ON] [* turn screen back on. Notice *]
[* that macro windows display even *]
[* if the screen is turned off *]
/ [* redraw screen before exit *]
[$MACFILE = "JMAC-SW"] [* change to default macro file *]
[EXIT] [* exit macro *]