home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / fileutil / ds410a.arj / MS_MOUSE.DEF < prev    next >
Encoding:
Text File  |  1991-03-01  |  12.7 KB  |  321 lines

  1. ;
  2. ; Program:  MSMOUSE.DEF
  3. ;           Source for MSMOUSE.MNU
  4. ;           - MicroSoft Mouse Menu Driver for DS Ver 4.00
  5. ;           - 1 May 1990
  6. ;
  7. ; Author:   Nat Martino  
  8. ;           501 W. Vineyard Ave #514
  9. ;           Oxnard, CA 93030
  10. ;           (805) 485-6340
  11. ;
  12. ; Instructions:
  13. ;     1.  Modify mouse menu driver as desired.
  14. ;     2.  Compile program with "makemenu" (ie: makemenu msmouse).
  15. ;         The makemenu compiler program is obtained from MicroSoft.
  16. ;     3.  Step 2 creates the "msmouse.mnu" file.
  17. ;     4.  Prior to starting DS ensure the Mouse driver and Mouse Menu
  18. ;         programs are executed.
  19. ;           ie:  MOUSE <ENTER>         ... loads Mouse Driver
  20. ;                MENU MSMOUSE <ENTER>  ... loads Mouse Menus for DS
  21. ;                DS <ENTER>            ... loads DS
  22. ;
  23. ; Mouse Operation Notes (as currently configured):
  24. ;      1. The Mouse can be configured to work on Directories or Files.
  25. ;         To switch the mouse configuration from directories to files
  26. ;         or visa versa, simultaneously depress then release both buttons.
  27. ;      2. Directory-Mouse
  28. ;           Left-Button  = Enter Key
  29. ;           Right-Button = Select Options Popup Menu 
  30. ;           Both-Buttons = Switch to File-Mouse
  31. ;           Left or Up Mouse Movement    = Move up the Directory Tree
  32. ;           Right or Down Mouse Movement = Move down the Directory Tree
  33. ;      3. File-Mouse
  34. ;           Left-Button  = Tag Current File
  35. ;           Right-Button = Select Options Popup Menu 
  36. ;           Both-Buttons = Switch to Directory-Mouse
  37. ;           Left  Mouse Movement = Move left 1 file column
  38. ;           Right Mouse Movement = Move right 1 file column
  39. ;           Up Mouse Movement    = Move up 1 file
  40. ;           Down Mouse Movement  = Move down 1 file
  41. ;      4. The Mouse is currently configured for Black & White operation.
  42. ;         To configure the menus for color operation use the following  
  43. ;         table to determine the appropriate color attribute value and
  44. ;         replace the "Normal" or "Inverse" keywords in the "MENU" and
  45. ;         "POPUP" statements with the attribute value.
  46. ;         ┌───────────────────────────────────────────┬────────────────────┐
  47. ;         │        T E X T   C O L O R S              │  BACKGROUND COLORS │
  48. ;         │ NUMBER   COLOR     NUMBER  COLOR          │  NUMBER   COLOR    │
  49. ;         │    0    Black         8  Dark Gray        │     0    Black     │
  50. ;         │    1    Blue          9  Light Blue       │    16    Blue      │
  51. ;         │    2    Green        10  Light Green      │    32    Green     │
  52. ;         │    3    Cyan         11  Light Cyan       │    48    Cyan      │
  53. ;         │    4    Red          12  Light Red        │    64    Red       │
  54. ;         │    5    Magenta      13  Light Magenta    │    80    Magenta   │
  55. ;         │    6    Brown        14  Yellow           │    96    Brown     │
  56. ;         │    7    White        15  Intense White    │   112    White     │
  57. ;         └───────────────────────────────────────────┴────────────────────┘
  58. ;             ie: Magenta Background with High Intense White Foreground
  59. ;                       Intense White Foreground = 15
  60. ;                         +  Magenta Blackground = 80
  61. ;                                              --------
  62. ;                                Attribute Value = 95
  63. ;
  64.  
  65. BEGIN       EnterKey, Options, File-Mouse, F1, F2, F1, F2, 10,10
  66.  
  67. Options:    EXECUTE Main 
  68.  
  69. File-Mouse: ASSIGN  T-Key, Options, Dir-Mouse, LeftArrow, RightArrow, UpArrow, DownArrow, 40,20
  70.  
  71. Dir-Mouse:  ASSIGN  EnterKey, Options, File-Mouse, F1, F2, F1, F2, 10,10
  72.  
  73. Main:  POPUP 1, 1, Normal 
  74. TEXT "CNX  <Esc>  Untag  Dir  Drive  File  DOS  Setup  Misc  Exit  Help  Split  Flip" 
  75.           SELECT 1, 34, 4, File1
  76.           SELECT 1,  1, 5,
  77.           SELECT 1,  8, 5, EscKey
  78.           SELECT 1, 15, 5, U-Key
  79.           SELECT 1, 22, 3, Dir1
  80.           SELECT 1, 27, 5, Drv
  81.           SELECT 1, 40, 3, DOS
  82.           SELECT 1, 45, 5, Setup
  83.           SELECT 1, 52, 4, Misc
  84.           SELECT 1, 58, 4, Exit-DS
  85.           SELECT 1, 64, 4, Help
  86.           SELECT 1, 70, 5, S-Key
  87.           SELECT 1, 77, 4, Key-+
  88.        PEND
  89.  
  90. File1: MENU "File Commands", 2, 26, Normal
  91.           OPTION " CANCEL ",
  92.           OPTION "Edit",          E-Key
  93.           OPTION "List",          L-Key
  94.           OPTION "Execute",       Xecute
  95.           OPTION "Copy",          K-Key
  96.           OPTION "Delete",        Confirm
  97.           OPTION "Move",          M-Key
  98.           OPTION "Rename",        R-Key
  99.           OPTION "Edit (OVL)",    Alt-E
  100.           OPTION "List (OVL)",    Alt-L
  101.           OPTION "Execute (OVL)", AltExecute
  102.           OPTION "PgUp",          PgUp
  103.           OPTION "PgDn",          PgDn
  104.           OPTION "Tag All",       Alt-T
  105.           OPTION "UnTag All",     Alt-U
  106.           OPTION "<goto page 2>", File2
  107.           OPTION " MOUSE MAIN ",Main
  108.        MEND
  109.  
  110. File2: MENU "File Commands", 2, 26, Normal  
  111.           OPTION " CANCEL ",
  112.           OPTION "Print",         P-Key
  113.           OPTION "Find",          F-Key
  114.           OPTION "Select/Sort",   Alt-S
  115.           OPTION "Attributes",    A-Key
  116.           OPTION "Control Tags",  Ctrl-T
  117.           OPTION "<goto page 1>", File1
  118.           OPTION " MOUSE MAIN ",Main
  119.        MEND
  120.  
  121. Dir1: MENU "Dir Commands", 2, 13, Normal 
  122.           OPTION " CANCEL ",
  123.           OPTION "Add-Del-Chg",   Ctrl-D
  124.           OPTION "Dir Links",     Key-0
  125.           OPTION "Dir Attributes",Ctrl-A
  126.           OPTION "Rescan Tree",   Alt-R
  127.           OPTION "Drv Free Space",Drv2
  128.           OPTION "Tree Dump",     Ctrl-U
  129.           OPTION "Volume ID",     Ctrl-V
  130.           OPTION "Root Directory",F5
  131.           OPTION "Last Directory",F6
  132.           OPTION "<Esc>",         EscKey
  133.           OPTION " MOUSE MAIN ",Main
  134.       MEND
  135.  
  136. Drv: MENU "Select Drive", 2, 19, Normal  
  137.           OPTION " CANCEL ",
  138.           OPTION "Drive A:",      ChgDrv-A
  139.           OPTION "Drive B:",      ChgDrv-B
  140.           OPTION "Drive C:",      ChgDrv-C
  141.           OPTION "Drive D:",      ChgDrv-D
  142.           OPTION "Drive E:",      ChgDrv-E
  143.           OPTION "Drive F:",      ChgDrv-F
  144.           OPTION "Drive G:",      ChgDrv-G
  145.           OPTION "<Esc>",         EscKey
  146.           OPTION " MOUSE MAIN ",Main
  147.      MEND
  148.  
  149. Drv2: MENU "Select Drive", 2, 13, Normal 
  150.           OPTION " CANCEL ",
  151.           OPTION "Drive A:",      Free-A
  152.           OPTION "Drive B:",      Free-B
  153.           OPTION "Drive C:",      Free-C
  154.           OPTION "Drive D:",      Free-D
  155.           OPTION "Drive E:",      Free-E
  156.           OPTION "Drive F:",      Free-F
  157.           OPTION "Drive G:",      Free-G
  158.           OPTION "<Esc>",         EscKey
  159.           OPTION " MOUSE MAIN ",Main
  160.      MEND
  161.  
  162. DOS: MENU "DOS Commands", 2, 30, Normal  
  163.           OPTION " CANCEL ",
  164.           OPTION "Enter  Command",      C-Key
  165.           OPTION "Enter Command (OVL)", Alt-C
  166.           OPTION "Format A:",           Format-A
  167.           OPTION "Format B:",           Format-B
  168.           OPTION "Check disk",          ChkDsk
  169.           OPTION "Diskcopy A: B:",      DiskCopy
  170.           OPTION "Stop  Printing",      CnxPrt
  171.           OPTION "<Esc>",               EscKey
  172.           OPTION " MOUSE MAIN ",      Main
  173.      MEND
  174.  
  175. Setup: MENU "DS SETUP Commands", 2, 34, Normal 
  176.           OPTION " CANCEL ",
  177.           OPTION "25 43/50 Toggle",    Alt-M
  178.           OPTION "Define Macros",      Alt-F10       
  179.           OPTION "Color Setup",        Alt-K
  180.           OPTION "Edit-List Defaults", Ctrl-E
  181.           OPTION "<Esc>",              EscKey
  182.           OPTION " MOUSE MAIN ",     Main
  183.        MEND
  184.  
  185. Misc: MENU "Misc Commands", 2, 43, Normal
  186.           OPTION " CANCEL ",
  187.           OPTION "File Mouse",          File-Mouse
  188.           OPTION "Dir Mouse",           Dir-Mouse
  189.           OPTION "Refresh Screen",      Ctrl-R
  190.           OPTION "Program Limits",      Ctrl-L
  191.           OPTION "<Esc>",               EscKey
  192.           OPTION " MOUSE MAIN ",      Main
  193.       MEND
  194.  
  195. Exit-DS: MENU "Are You Sure?", 2, 50, Normal 
  196.           OPTION " CANCEL ",
  197.           OPTION "Yes",           F9
  198.           OPTION "No",  
  199.           OPTION "<Esc>",         EscKey
  200.           OPTION " MOUSE MAIN ",Main
  201.          MEND
  202.  
  203. HELP: POPUP  2, 2, Inverse 
  204. TEXT "╔════════════════════════════════════════════════════════════════════════════╗"
  205. TEXT "║             Up 1 Dir                             Up 1 File                 ║"
  206. TEXT "║                                                                          ║"
  207. TEXT "║        ╔═══════╧════════╗                    ╔═══════╧════════╗            ║"
  208. TEXT "║        ║     ┌────┬─────╫─Switch to          ║     ┌────┬─────╫─Switch to  ║"
  209. TEXT "║        ║              ║ File-Mouse         ║              ║ Dir-Mouse  ║"
  210. TEXT "║        ║  ┌───┐  ┌───┐  ║                    ║  ┌───┐  ┌───┐  ║            ║"
  211. TEXT "║  Enter─╫─│ L │  │ R │─╫─Options        Tag─╫─│ L │  │ R │─╫─Options    ║"
  212. TEXT "║        ║  └───┘  └───┘  ║                    ║  └───┘  └───┘  ║            ║"
  213. TEXT "║  Up 1─╢    Dir-Mouse   ╟─Down        Prev─╢   File-Mouse   ╟─Next      ║"
  214. TEXT "║   Dir  ╚═══════╤════════╝  1 Dir        Col  ╚════════╤═══════╝   Col      ║"
  215. TEXT "║                                                                          ║"
  216. TEXT "║           Down 1 Dir   ╔══════════════════════╗  Down 1 File               ║"
  217. TEXT "║                        ║ MS Mouse for DS 4.00 ║                            ║"
  218. TEXT "║                        ╟──────────────────────╢                            ║"
  219. TEXT "║         <Esc>          ║       CANCEL       ║    CANCEL   &   CNX    ║"
  220. TEXT "║  Abort Mouse Command   ║  1 Page Help Screen  ║     Abort Mouse Command    ║"
  221. TEXT "║   with Esc key input   ║    Expanded  Help    ║      with no key input     ║"
  222. TEXT "║                        ║     MOUSE MAIN     ║                            ║"
  223. TEXT "╚════════════════════════╩══════════════════════╩════════════════════════════╝"
  224.           SELECT 16, 29, 18, 
  225.           SELECT 17, 29, 18, Help1
  226.           SELECT 18, 29, 18, F10
  227.           SELECT 19, 29, 18, Main
  228.        PEND
  229.  
  230. Confirm: MENU "Are You Sure?", 2, 44, Normal 
  231.           OPTION " CANCEL ",    
  232.           OPTION "Yes",           DelFile
  233.           OPTION "No",            
  234.           OPTION "<Esc>",         EscKey
  235.           OPTION " MOUSE MAIN ",Main
  236.          MEND
  237.  
  238. EnterKey:    TYPE ENTER  
  239. A-Key:       TYPE "a"   
  240. B-Key:       TYPE "b"   
  241. C-Key:       TYPE "c"   
  242. D-Key:       TYPE "d"   
  243. E-Key:       TYPE "e"   
  244. F-Key:       TYPE "f"   
  245. G-Key:       TYPE "g"   
  246. K-Key:       TYPE "k"   
  247. L-Key:       TYPE "l"   
  248. M-Key:       TYPE "m"   
  249. P-Key:       TYPE "p"   
  250. R-Key:       TYPE "r"   
  251. S-Key:       TYPE "s"   
  252. T-Key:       TYPE "t"   
  253. U-Key:       TYPE "u"   
  254. X-Key:       TYPE "x"   
  255. Y-Key:       TYPE "y"   
  256. Key-0:       TYPE "0"   
  257. Key-+:       TYPE "+"   
  258. Help1:       TYPE "?"   
  259. Alt-C:       TYPE 0,46  
  260. Alt-D:       TYPE 0,32  
  261. Alt-E:       TYPE 0,18  
  262. Alt-F:       TYPE 0,33  
  263. Alt-K:       TYPE 0,37  
  264. Alt-L:       TYPE 0,38  
  265. Alt-M:       TYPE 0,50  
  266. Alt-R:       TYPE 0,19  
  267. Alt-S:       TYPE 0,31  
  268. Alt-T:       TYPE 0,20  
  269. Alt-U:       TYPE 0,22  
  270. Alt-X:       TYPE 0,45  
  271. Alt-F10:     TYPE 0,113 
  272. F1:          TYPE 0,59  
  273. F2:          TYPE 0,60  
  274. F5:          TYPE 0,63  
  275. F6:          TYPE 0,64  
  276. F9:          TYPE 0,67  
  277. F10:         TYPE 0,68  
  278. PgUp:        TYPE 0,73  
  279. PgDn:        TYPE 0,81  
  280. LeftArrow:   TYPE 0,75   
  281. RightArrow:  TYPE 0,77   
  282. UpArrow:     TYPE 0,72   
  283. DownArrow:   TYPE 0,80   
  284. Ctrl-A:      TYPE 1     
  285. Ctrl-D:      TYPE 4     
  286. Ctrl-E:      TYPE 5     
  287. Ctrl-L:      TYPE 12    
  288. Ctrl-R:      TYPE 18    
  289. Ctrl-T:      TYPE 20    
  290. Ctrl-U:      TYPE 21    
  291. Ctrl-V:      TYPE 22    
  292. EscKey:      TYPE 27    
  293. ChgDrv-A:    TYPE "da", ENTER   
  294. ChgDrv-B:    TYPE "db", ENTER   
  295. ChgDrv-C:    TYPE "dc", ENTER   
  296. ChgDrv-D:    TYPE "dd", ENTER   
  297. ChgDrv-E:    TYPE "de", ENTER   
  298. ChgDrv-F:    TYPE "df", ENTER   
  299. ChgDrv-G:    TYPE "dg", ENTER   
  300. Free-A:      EXECUTE Alt-F, A-Key
  301. Free-B:      EXECUTE Alt-F, B-Key
  302. Free-C:      EXECUTE Alt-F, C-Key
  303. Free-D:      EXECUTE Alt-F, D-Key
  304. Free-E:      EXECUTE Alt-F, E-Key
  305. Free-F:      EXECUTE Alt-F, F-Key
  306. Free-G:      EXECUTE Alt-F, G-Key
  307. DelFile:     EXECUTE Alt-D, EnterKey
  308. Xecute:      EXECUTE X-Key, EnterKey
  309. AltExecute:  EXECUTE Alt-X, EnterKey
  310. EscMain:     EXECUTE EscKey, Main
  311. Format-A:    EXECUTE C-Key, Frmt-A
  312. Frmt-A:      TYPE "format a:", ENTER
  313. Format-B:    EXECUTE C-Key, Frmt-B
  314. Frmt-B:      TYPE "format b:", ENTER
  315. DiskCopy:    EXECUTE C-Key, Copy-A-B
  316. Copy-A-B:    TYPE "diskcopy a: b:", ENTER
  317. ChkDsk:      EXECUTE C-Key, CkDsk
  318. CkDsk:       TYPE "chkdsk", ENTER
  319. CnxPrt:      EXECUTE C-Key, PrtTerm
  320. PrtTerm:     TYPE "print/t", ENTER   
  321.