home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Der Mediaplex Sampler - Die 6 von Plex
/
6_v_plex.zip
/
6_v_plex
/
DISK5
/
DOS_30
/
TSRSEL.ZIP
/
TSELECT.CFG
< prev
next >
Wrap
Text File
|
1991-10-01
|
7KB
|
181 lines
.......TSELECT.CFG...........for Version 1.06 of TSR-Select...........
.
. Quadrant Computer Systems May 1991 - Feb 1992
.
.All lines starting with a period are comments and are ignored.
.Blank lines are also ignored.
.
. If you are using the Editor in SELECTC, remember that F2 is Save,
. and the [ESC] key will exit the editor. If you exit before saving,
. any changes you made will be lost. Press the F1 key for help.
.
.
. FORMATTING THE CONFIGURATION FILE
.
. Menu Items begin with an asterisk (*)
. The menu item names longer than 30 characters are truncated.
. TSELECT will "grow" the width of the menu to accomodate up to 30.
.
. Short Cut key specifier line begins with $ (see below)
.
. All commands required prior to the executable begin with <
.
. All commands required after the executable begin with >
.
. The line which executes the program begins with +
. This line should contain the command (with any parameters)
. required to execute the program. The command must have the
. fully qualified drive and path in front of it, and the program
. extension must be correct. For example: DBASE TEST is NOT valid.
. C:DBASE.EXE TEST is NOT valid. C:\DBASE\DBASE TEST is NOT valid.
. C:\DBASE\DBASE.EXE TEST *is* valid.
.
. NOTE: You may also use '@' in place of '+'... using '@' will NOT
. check for the existence of the executable program... this is
. actually required if you want to execute an internal DOS command
. since there is no file for TSELECT to check for.
.
. As an example, the following menu item would begin with a
. change of directory to C:\DATA\DBASE, changing the path statement,
. executing DBASE, then returning the original drive/path, and
. resetting the path:
.
. *dBASE ; menu selection
. $1 ; position of short-cut character in *
. <ECHO OFF ; suggested for appearances sake
. <CLS
. <SET OPATH=%PATH%
. <PATH C:\DBASE
. <C:
. <CD \DATA\DBASE
. +C:\DBASE\DBASE.EXE ProgramX ; ProgramX is a .PRG program
. >PATH %OPATH%
. >SET OPATH=
.
. Immediately following the Menu Selection line (starts with *) is the
. element that tells TSR-Select which character in the Menu Selection line
. is to be the short-cut character, the key the user can press to select
. the item without having to first highlight the selection and press
. ENTER. If this is left out, the first character will be used. If
. the character chosen competes with a menu selection with the same
. short-cut key, when the user presses the key, only the first selection
. will ever be selected. The only way for the other selection to be
. executed is if the user highlights it and presses ENTER.
.
. Below are the real lines of this configuration file. The total
. number of lines allowed is 400. There is no specific limit of
. lines for any menu selection as long as the total is less than 400.
. Comment lines are not counted as part of the total.
.
. Default hotkey is Alt-LeftShift-M.....................
. To change the hotkey definition, enter the line ".HOTKEY:$xxxx" so
. that the period is in column one, immediately before the first '*'
. selection. The 'xxxx' is a hexidecimal code, defined as:
.
. $0800 Alt
. $0400 Ctrl
. $0200 LeftShift
. $0100 RightShift
. $ xx Scan code for main key
.
. Add the byte on the left for the key combination,
. then select the scan code for the main key as the
. byte on the right. For example, for Alt-Ctrl, add up
. $08 plus $04, which is $0A.. the scan code for Z is $2C,
. so:
.
. Example: .HOTKEY:$0A2C changes hotkey to Alt-LeftShift-Z
.
. as another example, if you wanted the hotkey to be
. Ctrl-LeftShift-M: .HOTKEY:$0632
.
. NOTE: Yes! There is a period ('.') just prior to the
. keyword 'HOTKEY'... although periods are supposed to
. identify comment lines, this is the one exception.
.
. Keep in mind that scan codes are NOT the same as ASCII codes.
.
. Single key hotkeys are possible by just leaving the left byte
. at $00; for example, $0054 turns the SysReq key into the hotkey.
. (Make sure you *have* a SysReq key! Some keyboards do not!)
. Another example: $0058 makes F12 the hotkey. Refer to the
. documentation for a table of all scan codes. You can also
. use the SCANKEY utility.
.
. Some scan codes just plain don't work as hotkeys; if you configure
. a scan code and when you run TSELECT you receive the error message:
. 'Error defining popup procedure', then you've choosen a hotkey
. that will not work. Sometimes you won't receive the error message
. but the hotkey still doesn't work. There is some experimentation involved,
. and it is best if you do not choose something really outrageous.
. Unless every PC you have is identical, then it is possible that
. a hotkey you choose that works on one PC may not work on another.
. <Alt>-<x-Shift>-<character> is almost always safe, as is
. <Ctrl>-<x-Shift>-<character>.
.
*Mail
$1
<CLS
+Z:\MAIL.EXE
.
*Chat
$1
<CLS
+Z:\CHAT.EXE
.
*SetPrint
$2
<cls
+Z:\SETPRINT.EXE
.
*EndSpool
$1
<CLS
+Z:\ENDSPOOL.EXE
.
*LastMsg ; this is a comment... all characters after
$1 ; a semicolon are ignored.
<cls
+Z:\LASTMSG.EXE
>pause
.
*Send
$1
<cls
+Z:\SEND.EXE
>cls ; see explanation below as to why this is here
.
.*dBASE ; menu selection
.$2 ; position of short-cut character in *
.<ECHO OFF ; suggested for appearances sake
.<CLS
.<SET OPATH=%PATH%
.<PATH C:\DBASE
.<C:
.<CD \DATA\DBASE
.+C:\DBASE\DBASE.EXE
.>PATH %OPATH%
.>SET OPATH=
.>cls ; see comment immediately below re: this line
.
. There is a bug in all versions of TSR-Select which will not read
. the last command line of the last menu entry (the >cls above). The work
. around is to put some harmless command as the last command line, e.g.,
. the >cls command above.
.
. If there are more than 15 entries, all entries after the 15th entry
. are ignored, and no error message is generated.
.
. If you have input only one entry then TSR-Select will not generate a
. pop-up menu, but will execute that one selection immediately after
. you press the hot-key. When exiting that selection, the user is
. returned immediately to the foreground application.
.
.
. WARNING: Do NOT attempt to use TSR-Select to execute a program that
. makes low-level modifications to the DOS file system.
. Programs to avoid include CHKDSK, disk de-fragmenters,
. and physical directory sorters like Norton's DIRSORT.
.