home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
hook57.zip
/
hook.dat
< prev
next >
Wrap
Text File
|
1995-07-10
|
10KB
|
188 lines
;; HOOK.DAT Key Assignment file for HOOK.EXE Thu 07-06-95
;;
;; This file MUST be located in the directory X:\HOOK????
;; where X and ???? were chosen by the user at install time
;;
;; NB the actuating Key strokes are Shift-Alt-X, Shift-Ctrl-X, Alt-Ctrl-X
;;
;; <<<<<<<<<<<<<<<<<<<<<<< The format is as follows >>>>>>>>>>>>>>>>>>>>>>
;;
;; A ";"indicates a comment and any text from ";" to end of line is ignored
;;
;; Blank Lines are not allowed - place at least one ";" on any line
;;
;; There must be at least 1 space between each field and the next field.
;;
;; The first field in a line is either A#, C# or Q# indicating an assignment to
;; Shift-Alt-#, Shift-Ctrl-# or Alt-Ctrl-# where # is 0,1,2,3,4,5,6,7,8,9 or
;; AX, CX, QX indicating assignment to to Shift-Alt-X, Shift-Ctrl-X, Alt-Ctrl-X
;; where X is any letter from a .. z.
;;
;; NEW NEW NEW NEW NEW NEW NEW NEW NEW NEW NEW NEW NEW NEW NEW NEW
;; To assign Alt-Pause or Shift-Pause the first field is either
;; PA for Alt-Pause or PS for Shift-Pause
;;
;; No distinction exists between LowerCase or UpperCase.
;;
;; The next field is optional - it allows the user to include a descriptive
;; text (up to 20 characters long) to describe the program. It will appear
;; in the Task List after the Alt|Ctl|Qac-X Hot Key indicator
;; The text to be included must be between @-------@ as
;; @Fox Pro 2.0@
;;
;; The next set of (4) fields are collectively optional and allow the user
;; the ability to set the location and size of the Window.
;; They are entered as x|X### y|Y### w|W### h|H###
;; where x|X y|Y w|W h|H denote the coordinates of the lower left corner
;; of the window and w|W / h|H denotes the Width / Height of the window.
;; All sizes are given in PELS so that a set of values OK for one screen
;; resolution will appear differently for another.
;; x0 y0 w300 h400 will create a window located at the lower left corner
;; of the Screen whose size is 300 pels wide and 400 pels high.
;;
;; The next field has the following options.
;;
;; 9 means that the key will not be recognized. This can be accomplishied
;; as well by commenting that assignment out with ";
;; ;Ad means that Shift-Alt-D is not assigned
;; Ad 9 a 0 means that Shift-Alt-D is not assigned
;; the 9 must be followed by any letter a space and "0"
;;
;; OR just omitting Ad from the text also means it is not assigned
;;
;; Otherwise the field has the following meaning
;;
;; 0 Allows the Shell to establish the session type - best as a rule
;; 1 Starts program as Full Session OS/2
;; 2 Start Program in Windowed Session for programs using Base Video System
;; 3 Start Program in Windowed Session for programs using PM services
;; 4 Start Program in Full Screen DOS session
;; 7 Start Program in Windowed DOS session
;;
;; The next field is the file spec of the program to be executed and the
;; field after that is either a "0" indicating no command line parameters
;; or the command line parameters. If the command line parameters contain
;; any spaces the command line parameters must be contained within "".
;;
;; Ae 0 c:\os2\e.exe c:config.sys ; loads the system editor included in OS/2
;; to edit c:config.sys and assigns this
;; command to Shift-Alt-e
;;
;; Ae @Edit Config.sys@0 c:\os2\e.exe c:config.sys ; loads the system editor included in OS/2
;; to edit c:config.sys and assigns this
;; command to Shift-Alt-e displays description
;; "Edit Config.sys" in Task List
;;
;; Generically speaking the format below assigns programfilespec to Shift-Alt-x
;;
;; Ax 0 programfilespec "program command line" ;if there are command line parms
;;
;; Ax 0 programfilespec 0 ;if no command line parms
;;
;; The programfilespec must contain the extension .COM / .EXE / .BAT
;; BAT files can be loaded just like EXE files but CMD files must be
;; passed as strings to the Command Processor. If the command processor
;; is CMD.EXE the the string must be "/C X:\dirname\fname.CMD".
;; The 4os2 command processor does not require the /C parameter.
;;
;; HOOK uses the DosStartSession Function of the OS/2 API to load programs.
;; It is documented on page 2-345 of the Control Program Functions Manual.
;;
;; DosStartSession does not like to load a CMD file directly so they must be
;; loaded with a command processor as
;;
;; A5 0 c:\os2\cmd.exe "/C abcdef.cmd" ; abcdef.CMD loaded by OS/2 command processor
;;
;; The 4os2 command processor does not require the /C parameter
;; A5 0 c:\4os2path\4os2.exe abcdef.cmd ; abcdef.CMD loaded by 4OS2 command processor
;;
;; To assign a program to a key follow the examples/rules above
;;
;; If you edit this file while HOOK is Active, press Shft-Alt-UpArrow(W)
;; to re-read this file in and redefine the Active Set of Keys
;;
;; !!IF this file is edited from the HOOK Menu, it is automatically re-read!!
;;
;; In the Task List Shift-Alt-Key assignments are identified as Alt-X
;; In the Task List Shift-Ctl-Key assignments are identified as Ctl-X
;; In the Task List Alt-Ctrl-Key assignments are identified as Qac-X
;;
;; Please Note that As is assigned to Search and Replace Applet which may
;; not be valid for other than vs.2.1 and Cw for Windows is valid only for
;; OS/2 2.0/2.1 not for WARP!!
;;
Q3 @3:OS/2 Command@ 0 c:\os2\cmd.exe 0 ;OS/2 window using OS/2 Command Processor
A1 @1:OS/2 Command@ 0 c:\os2\cmd.exe 0 ;OS/2 window using OS/2 Command Processor
A2 @2:OS/2 Command@ 0 c:\os2\cmd.exe 0 ;OS/2 window using OS2 Command Processor
A3 @3:OS/2 FScreen@ 1 c:\os2\cmd.exe 0 ;OS/2 Full Screen using OS/2 Command Processor
A4 9 x 0 ;Key not assigned
A5 9 x 0 ;Key not assigned
A6 9 a 0 ;Key not assigned
A7 9 x 0 ;Key not assigned
A8 9 a 0 ;Key not assigned
A9 9 a 0 ;Key not assigned
A0 9 x 0 ;Key not assigned
Aa 9 a 0 ;Key not assigned
Ab 9 x 0 ;Key not assigned
Ac 9 x 0 ;Key not assigned
Ad 9 a 0 ;Key not assigned
Ae @System E Editor@ 0 c:\os2\e.exe 0 ;OS/2 e.exe system editor
Af 9 x 0 ;Key not assigned
Ag 9 x 0 ;Key not assigned
Ah 9 x 0 ;Key not assigned
Ai 9 x 0 ;Key not assigned
Aj 9 x 0 ;Key not assigned
Ak 9 x 0 ;Key not assigned
Al 9 x 0 ;Key not assigned
Am 9 x 0 ;Key not assigned
An 9 x 0 ;Key not assigned
Ap 9 z 0 ;Key not assigned
Aq 9 x 0 ;Key not assigned
Ar 9 z 0 ;Key not assigned
As @Search and Seek@ 0 c:\os2\apps\pmseek.exe 0 ;OS/2 Search & Scan Applet
At 9 z 0 ;Key not assigned
Au 9 z 0 ;Key not assigned
Av 9 x 0 ;Key not assigned
Aw 9 z 0 ;Key not assigned
Ax 9 z 0 ;Key not assigned
Ay 9 z 0 ;Key not assigned
Az 9 z 0 ;Key not assigned
C1 @1:DOS Command@ 7 c:\os2\mdos\command.com 0 ;DOS window using built in DOS
C2 @2:DOS Command@ 7 c:\os2\mdos\command.com 0 ;DOS window using built in DOS
C3 @3:DOS FScreen@ 4 c:\os2\mdos\command.com 0 ;Full Screen using built in DOS
C4 9 a 0 ;Key not assigned
C5 9 a 0 ;Key not assigned
C6 9 a 0 ;Key not assigned
C7 9 a 0 ;Key not assigned
C8 9 a 0 ;Key not assigned
C9 9 a 0 ;Key not assigned
C0 9 a 0 ;Key not assigned
Ca 9 a 0 ;Key not assigned
Cb @QBasic@ 7 c:\os2\mdos\qbasic.exe 0 ;QBasic from dos in DOS window
Cc 9 a 0 ;Key not assigned
Cd 9 a 0 ;Key not assigned
Ce 9 a 0 ;Key not assigned
Cf 9 c 0 ;Key not assigned
Cg 9 b 0 ;Key not assigned
Ch 9 c 0 ;Key not assigned
Ci 9 c 0 ;Key not assigned
Cj 9 d 0 ;Key not assigned
Ck 9 e 0 ;Key not assigned
Cl 9 f 0 ;Key not assigned
Cm 9 c 0 ;Key not assigned
Cn 9 g 0 ;Key not assigned
Co 9 h 0 ;Key not assigned
Cp 9 c 0 ;Key not assigned
Cq 9 c 0 ;Key not assigned
Cr 9 i 0 ;Key not assigned
Cs 9 j 0 ;Key not assigned
Ct 9 k 0 ;Key not assigned
Cu 9 l 0 ;Key not assigned
Cv 9 m 0 ;Key not assigned
Cw@Windows 3.1@ 4 c:\os2\mdos\winos2\win.com 0 ;OS/2 DOS Win 3.1 Full Screen
Cx 9 o 0 ;Key not assigned
Cy 9 p 0 ;Key not assigned
Cz 9 q 0 ;Key not assigned
Pa 9 q 0 ;Key not assigned Alt-Pause
Ps 9 q 0 ;Key not assigned Shift-Pause