home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / hook57.zip / hook.dat < prev    next >
Text File  |  1995-07-10  |  10KB  |  188 lines

  1. ;; HOOK.DAT Key Assignment file for HOOK.EXE   Thu  07-06-95
  2. ;;
  3. ;; This file  MUST be located in the directory X:\HOOK????
  4. ;; where X and ???? were chosen by the user at install time
  5. ;;
  6. ;; NB the actuating Key strokes are Shift-Alt-X, Shift-Ctrl-X, Alt-Ctrl-X
  7. ;;
  8. ;; <<<<<<<<<<<<<<<<<<<<<<< The format is as follows >>>>>>>>>>>>>>>>>>>>>>
  9. ;;
  10. ;; A ";"indicates a comment and any text from ";" to end of line is ignored
  11. ;;
  12. ;; Blank Lines are not allowed - place at least one ";" on any line
  13. ;;
  14. ;; There must be at least 1 space between each field and the next field.
  15. ;;
  16. ;; The first field in a line is either A#, C# or Q# indicating an assignment to
  17. ;; Shift-Alt-#, Shift-Ctrl-# or Alt-Ctrl-# where #  is  0,1,2,3,4,5,6,7,8,9 or
  18. ;; AX, CX, QX indicating assignment to to Shift-Alt-X, Shift-Ctrl-X, Alt-Ctrl-X
  19. ;; where X is any letter from a .. z.
  20. ;;
  21. ;; NEW NEW NEW NEW NEW NEW NEW NEW NEW NEW NEW NEW NEW NEW NEW NEW
  22. ;; To assign Alt-Pause or Shift-Pause the first field is either
  23. ;; PA for Alt-Pause or PS for Shift-Pause
  24. ;;
  25. ;; No distinction exists between LowerCase or UpperCase.
  26. ;;
  27. ;; The next field is optional - it allows the user to include a descriptive
  28. ;; text (up to 20 characters long) to describe the program. It will appear
  29. ;; in the Task List after the Alt|Ctl|Qac-X Hot Key indicator
  30. ;; The text to be included must be between @-------@ as
  31. ;; @Fox Pro 2.0@
  32. ;;
  33. ;; The next set of (4) fields are collectively optional and allow the user
  34. ;; the ability to set the location and size of the Window.
  35. ;; They are entered as           x|X### y|Y### w|W### h|H###
  36. ;; where x|X y|Y w|W h|H denote the coordinates of the lower left corner
  37. ;; of the window and w|W / h|H denotes the Width / Height of the window.
  38. ;; All sizes are given in PELS so that a set of values OK for one screen
  39. ;; resolution will appear differently for another.
  40. ;; x0 y0 w300 h400 will create a window located at the lower left corner
  41. ;; of the Screen whose size is 300 pels wide and 400 pels high.
  42. ;;
  43. ;; The next field has the following options.
  44. ;;
  45. ;; 9 means that the key will not be recognized. This can be accomplishied
  46. ;;   as well by commenting that assignment out with ";
  47. ;; ;Ad        means that Shift-Alt-D is not assigned
  48. ;; Ad 9 a 0   means that Shift-Alt-D is not assigned
  49. ;;            the 9 must be followed by any letter a space and "0"
  50. ;;
  51. ;; OR just omitting Ad from the text also means it is not assigned
  52. ;;
  53. ;; Otherwise the field has the following meaning
  54. ;;
  55. ;; 0   Allows the Shell to establish the session type - best as a rule
  56. ;; 1   Starts program as Full Session OS/2
  57. ;; 2   Start Program in Windowed Session for programs using Base Video System
  58. ;; 3   Start Program in Windowed Session for programs using PM services
  59. ;; 4   Start Program in Full Screen DOS session
  60. ;; 7   Start Program in Windowed DOS session
  61. ;;
  62. ;; The next field is the file spec of the program to be executed and the
  63. ;; field after that is either a "0" indicating no  command line parameters
  64. ;; or the command line parameters. If the command line parameters contain
  65. ;; any spaces the command line parameters must be contained within "".
  66. ;;
  67. ;; Ae 0 c:\os2\e.exe c:config.sys ; loads the system editor included in OS/2
  68. ;;                                  to edit c:config.sys and assigns  this
  69. ;;                                  command to Shift-Alt-e
  70. ;;
  71. ;; Ae @Edit Config.sys@0 c:\os2\e.exe c:config.sys ; loads the system editor included in OS/2
  72. ;;                                  to edit c:config.sys and assigns  this
  73. ;;                                  command to Shift-Alt-e displays description
  74. ;;                                  "Edit Config.sys" in Task List
  75. ;;
  76. ;; Generically speaking the format below assigns programfilespec to Shift-Alt-x
  77. ;;
  78. ;; Ax 0 programfilespec "program command line" ;if there are command line parms
  79. ;;
  80. ;; Ax 0 programfilespec  0                     ;if no command line parms
  81. ;;
  82. ;; The  programfilespec must contain the extension .COM / .EXE / .BAT
  83. ;; BAT files can be loaded just like EXE files but CMD files must be
  84. ;; passed as strings to the Command Processor. If the command processor
  85. ;; is CMD.EXE the the string must be "/C X:\dirname\fname.CMD".
  86. ;; The 4os2 command processor does not require the /C parameter.
  87. ;;
  88. ;; HOOK  uses the DosStartSession Function of the OS/2 API to load programs.
  89. ;; It is documented on page 2-345 of the Control Program Functions Manual.
  90. ;;
  91. ;; DosStartSession does not like to load a CMD file directly so they must be
  92. ;; loaded with a command processor as
  93. ;;
  94. ;; A5 0 c:\os2\cmd.exe "/C abcdef.cmd" ; abcdef.CMD loaded by OS/2 command processor
  95. ;;
  96. ;; The  4os2 command processor does not require the /C parameter
  97. ;; A5 0 c:\4os2path\4os2.exe  abcdef.cmd ; abcdef.CMD loaded by 4OS2 command processor
  98. ;;
  99. ;; To assign a program to a key follow the examples/rules above
  100. ;;
  101. ;; If you edit this file while HOOK is Active, press Shft-Alt-UpArrow(W)
  102. ;; to re-read this file in and redefine the Active Set of Keys
  103. ;;
  104. ;; !!IF  this file is edited from the HOOK Menu, it is automatically re-read!!
  105. ;;
  106. ;; In the Task List Shift-Alt-Key assignments are identified as Alt-X
  107. ;; In the Task List Shift-Ctl-Key assignments are identified as Ctl-X
  108. ;; In the Task List Alt-Ctrl-Key  assignments are identified as Qac-X
  109. ;;
  110. ;; Please Note that As is assigned to Search and Replace Applet which may
  111. ;; not be valid for other than vs.2.1 and Cw  for Windows is valid only for
  112. ;; OS/2 2.0/2.1 not for WARP!!
  113. ;;
  114. Q3 @3:OS/2 Command@ 0 c:\os2\cmd.exe 0               ;OS/2 window using OS/2 Command Processor
  115. A1 @1:OS/2 Command@ 0 c:\os2\cmd.exe 0               ;OS/2 window using OS/2 Command Processor
  116. A2 @2:OS/2 Command@ 0 c:\os2\cmd.exe 0               ;OS/2 window using OS2 Command Processor
  117. A3 @3:OS/2 FScreen@ 1 c:\os2\cmd.exe 0               ;OS/2 Full Screen using OS/2 Command Processor
  118. A4 9 x 0                            ;Key not assigned
  119. A5 9 x 0                            ;Key not assigned
  120. A6 9 a 0                            ;Key not assigned
  121. A7 9 x 0                            ;Key not assigned
  122. A8 9 a 0                            ;Key not assigned
  123. A9 9 a 0                            ;Key not assigned
  124. A0 9 x 0                            ;Key not assigned
  125. Aa 9 a 0                            ;Key not assigned
  126. Ab 9 x 0                            ;Key not assigned
  127. Ac 9 x 0                            ;Key not assigned
  128. Ad 9 a 0                            ;Key not assigned
  129. Ae @System E Editor@ 0 c:\os2\e.exe 0    ;OS/2 e.exe  system editor
  130. Af 9 x 0                            ;Key not assigned
  131. Ag 9 x 0                            ;Key not assigned
  132. Ah 9 x 0                            ;Key not assigned
  133. Ai 9 x 0                            ;Key not assigned
  134. Aj 9 x 0                            ;Key not assigned
  135. Ak 9 x 0                            ;Key not assigned
  136. Al 9 x 0                            ;Key not assigned
  137. Am 9 x 0                            ;Key not assigned
  138. An 9 x 0                            ;Key not assigned
  139. Ap 9 z 0                            ;Key not assigned
  140. Aq 9 x 0                            ;Key not assigned
  141. Ar 9 z 0                            ;Key not assigned
  142. As @Search and Seek@ 0 c:\os2\apps\pmseek.exe 0       ;OS/2 Search & Scan Applet
  143. At 9 z 0                            ;Key not assigned
  144. Au 9 z 0                            ;Key not assigned
  145. Av 9 x 0                            ;Key not assigned
  146. Aw 9 z 0                            ;Key not assigned
  147. Ax 9 z 0                            ;Key not assigned
  148. Ay 9 z 0                            ;Key not assigned
  149. Az 9 z 0                            ;Key not assigned
  150. C1 @1:DOS Command@ 7 c:\os2\mdos\command.com  0     ;DOS window using built in DOS
  151. C2 @2:DOS Command@ 7 c:\os2\mdos\command.com  0     ;DOS window using built in DOS
  152. C3 @3:DOS FScreen@ 4 c:\os2\mdos\command.com  0     ;Full Screen using built in DOS
  153. C4 9 a 0                            ;Key not assigned
  154. C5 9 a 0                            ;Key not assigned
  155. C6 9 a 0                            ;Key not assigned
  156. C7 9 a 0                            ;Key not assigned
  157. C8 9 a 0                            ;Key not assigned
  158. C9 9 a 0                            ;Key not assigned
  159. C0 9 a 0                            ;Key not assigned
  160. Ca 9 a 0                            ;Key not assigned
  161. Cb @QBasic@ 7 c:\os2\mdos\qbasic.exe 0       ;QBasic from dos in DOS window
  162. Cc 9 a 0                            ;Key not assigned
  163. Cd 9 a 0                            ;Key not assigned
  164. Ce 9 a 0                            ;Key not assigned
  165. Cf 9 c 0                            ;Key not assigned
  166. Cg 9 b 0                            ;Key not assigned
  167. Ch 9 c 0                            ;Key not assigned
  168. Ci 9 c 0                            ;Key not assigned
  169. Cj 9 d 0                            ;Key not assigned
  170. Ck 9 e 0                            ;Key not assigned
  171. Cl 9 f 0                            ;Key not assigned
  172. Cm 9 c 0                            ;Key not assigned
  173. Cn 9 g 0                            ;Key not assigned
  174. Co 9 h 0                            ;Key not assigned
  175. Cp 9 c 0                            ;Key not assigned
  176. Cq 9 c 0                            ;Key not assigned
  177. Cr 9 i 0                            ;Key not assigned
  178. Cs 9 j 0                            ;Key not assigned
  179. Ct 9 k 0                            ;Key not assigned
  180. Cu 9 l 0                            ;Key not assigned
  181. Cv 9 m 0                            ;Key not assigned
  182. Cw@Windows 3.1@ 4 c:\os2\mdos\winos2\win.com 0   ;OS/2 DOS Win 3.1 Full Screen
  183. Cx 9 o 0                            ;Key not assigned
  184. Cy 9 p 0                            ;Key not assigned
  185. Cz 9 q 0                            ;Key not assigned
  186. Pa 9 q 0                            ;Key not assigned  Alt-Pause
  187. Ps 9 q 0                            ;Key not assigned  Shift-Pause
  188.