home *** CD-ROM | disk | FTP | other *** search
/ Hall of Fame / HallofFameCDROM.cdr / disk / ds320.lzh / DS_MOUSE.MSC < prev    next >
Text File  |  1988-07-01  |  15KB  |  342 lines

  1.  
  2. ;               DS - DIRECTORY SCANNER POP-UP MENU CONFIGURATION
  3.  
  4. Comment        ("Configured for DS - Directory Scanner Ver 3.20")
  5.  
  6. ;      This file is a sample of how to define the pop-up menus and keys to
  7. ; work with the Optical PC Mouse from Mouse Systems.   The  file  must  be
  8. ; compiled with the compiler that comes with the Mouse  Systems  software.
  9. ; The "mousesys" mouse driver must first be loaded in the system, followed
  10. ; by the compiled output of this source file.
  11.  
  12. ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  13.  
  14. ;       GLOBAL PARAMETERS
  15.  
  16. ReverseVideo    (Yes)           ; Menu is displayed in reverse video
  17. FixedMenu       (No)            ; Menu is floating (centered on cursor)
  18. EnableBeep      (No)            ; Allows menu switching rather than beep
  19. ExpertMode      (Yes)
  20.  
  21. ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  22.  
  23. ;       CURSOR DEFINITIONS
  24.  
  25. File_Cursor: Cursor
  26. (
  27.                  Left         ([Left])
  28.                  Right        ([Right])
  29.                  Up           ([Up])
  30.                  Down         ([Down]) 
  31.                  Sensitivity  (30, 10)   
  32.                  Hysteresis   (2, 2)     
  33. )
  34.  
  35. ; DEF #1            Definitions When Working With Files
  36. ; ┌────────┬──────────────┐  ┌───────────┬─────────────────────────────────────┐
  37. ; │        │      UP      │  │           │     Left        Middle      Right   │
  38. ; │ Mouse  │      |       │  │  Button   │                                     │
  39. ; │Movement│LEFT--|--RIGHT│  │Definitions│    Switch        Tag        UnTag   │
  40. ; │        │      |       │  │           │      to          File       File    │
  41. ; │        │     DOWN     │  │           │    DEF #2                           │
  42. ; └────────┴──────────────┘  └───────────┴─────────────────────────────────────┘
  43.  
  44.  
  45. Dir_Cursor: Cursor
  46. (
  47.                  Left         ([F1])
  48.                  Right        ([F2])
  49.                  Up           ([F1])
  50.                  Down         ([F2]) 
  51.                  Sensitivity  (10, 10)
  52.                  Hysteresis   (2, 2)  
  53. )
  54.  
  55. ; DEF #2           Definitions When Working With Directories
  56. ; ┌────────┬───────────┐     ┌───────────┬─────────────────────────────────────┐
  57. ; │        │     F1    │     │           │     Left        Middle      Right   │
  58. ; │ Mouse  │     |     │     │  Button   │                                     │
  59. ; │Movement│ F1--|--F2 │     │Definitions│    Switch         F3        <CR>    │
  60. ; │        │     |     │     │           │      to                             │
  61. ; │        │     F2    │     │           │    DEF #1    (Rtn to root)          │
  62. ; └────────┴───────────┘     └───────────┴─────────────────────────────────────┘
  63.  
  64. Macro_Cursor: Cursor
  65. (
  66.                  Left         ([Left])
  67.                  Right        ([Right])
  68.                  Up           ([Up])
  69.                  Down         ([Down]) 
  70.                  Sensitivity  (10, 10)  
  71.                  Hysteresis   (10, 2)   
  72. )
  73.  
  74. ; DEF #3           Definitions When Working With MACROS
  75. ; ┌────────┬──────────────┐  ┌───────────┬─────────────────────────────────────┐
  76. ; │        │      UP      │  │           │     Left        Middle      Right   │
  77. ; │ Mouse  │      |       │  │  Button   │                                     │
  78. ; │Movement│LEFT--|--RIGHT│  │Definitions│     Tab          Tag        UnTag   │
  79. ; │        │      |       │  │           │                  File       File    │
  80. ; │        │     DOWN     │  │           │                                     │
  81. ; └────────┴──────────────┘  └───────────┴─────────────────────────────────────┘
  82.  
  83.  
  84. Link1_Cursor: Cursor
  85. (
  86.                  Left         ([Up])
  87.                  Right        ([Down])
  88.                  Up           ([Up])
  89.                  Down         ([Down]) 
  90.                  Sensitivity  (10, 10)
  91.                  Hysteresis   (2, 2)  
  92. )
  93.  
  94. ; DEF #4       Definitions When Working With DIR Links (Right Display)
  95. ; ┌────────┬──────────────┐  ┌───────────┬─────────────────────────────────────┐
  96. ; │        │      UP      │  │           │     Left        Middle      Right   │
  97. ; │ Mouse  │      |       │  │  Button   │                                     │
  98. ; │Movement│  UP--|--DOWN │  │Definitions│    Switch       <Esc>       <CR>    │
  99. ; │        │      |       │  │           │      to                             │
  100. ; │        │     DOWN     │  │           │    DEF #5                           │
  101. ; └────────┴──────────────┘  └───────────┴─────────────────────────────────────┘
  102.  
  103.  
  104. Link2_Cursor: Cursor
  105. (
  106.                  Left         ([F1])
  107.                  Right        ([F2])
  108.                  Up           ([F1])
  109.                  Down         ([F2]) 
  110.                  Sensitivity  (10, 10)
  111.                  Hysteresis   (2, 2)  
  112. )
  113.  
  114. ; DEF #5      Definitions When Working With DIR Links (Left Display)
  115. ; ┌────────┬───────────┐     ┌───────────┬─────────────────────────────────────┐
  116. ; │        │     F1    │     │           │     Left        Middle      Right   │
  117. ; │ Mouse  │     |     │     │  Button   │                                     │
  118. ; │Movement│ F1--|--F2 │     │Definitions│    Switch       <Esc>       <CR>    │
  119. ; │        │     |     │     │           │      to                             │
  120. ; │        │     F2    │     │           │    DEF #4                           │
  121. ; └────────┴───────────┘     └───────────┴─────────────────────────────────────┘
  122.  
  123. ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  124.  
  125. ;       BUTTON DEFINITIONS 
  126.  
  127. Tag_it:          Button  (Keys("t"))        
  128. UnTag_it:        Button  (Keys("u"))        
  129.  
  130. Top_Dir:         Button  (Keys([F3]))
  131. CR:              Button  (Keys([Enter]))
  132. ESC_Key:         Button  (Keys([Esc]))
  133. TAB_Key:         Button  (Keys([Tab]))
  134. Page_Up:         Button  (Keys([PgUp]))
  135. Page_Dn:         Button  (Keys([PgDn]))
  136. Up_Key:          Button  (Keys([Up]))
  137. HOME_Key:        Button  (Keys([Home]))
  138. END_KEY:         Button  (Keys([End]))
  139.  
  140. Dir_Buttons:     Button  (Cursor  (Dir_Cursor)
  141.                           Button  (Left=File_Buttons)
  142.                           Button  (Middle=Top_Dir)
  143.                           Button  (Right=CR))
  144.  
  145. File_Buttons:    Button  (Cursor  (File_Cursor)
  146.                           Button  (Left=Dir_Buttons)
  147.                           Button  (Middle=Tag_it)
  148.                           Button  (Right=UnTag_it))
  149.  
  150. Esc_File_Buttons:Button  (Cursor  (File_Cursor)
  151.                           Keys    ([Esc])
  152.                           Button  (Left=Dir_Buttons)
  153.                           Button  (Middle=Tag_it)
  154.                           Button  (Right=UnTag_it))
  155.  
  156. Rtn_File_Buttons:Button  (Cursor  (File_Cursor)
  157.                           Keys    ([Enter])
  158.                           Button  (Left=Dir_Buttons)
  159.                           Button  (Middle=Tag_it)
  160.                           Button  (Right=UnTag_it))
  161.  
  162. Link1_Buttons:   Button  (Cursor  (Link1_Cursor)
  163.                           Button  (Left=Link2_Buttons)
  164.                           Button  (Middle=Esc_File_Buttons)
  165.                           Button  (Right=Rtn_File_Buttons))
  166.  
  167. Link2_Buttons:   Button  (Cursor  (Link2_Cursor)
  168.                           Button  (Left=Link1_Buttons)
  169.                           Button  (Middle=Esc_File_Buttons)
  170.                           Button  (Right=Rtn_File_Buttons))
  171.  
  172. LM_CHORD:        Button  (Menu(LM_MENU))
  173.  
  174. LR_CHORD:        Button  (Menu(LR_MENU))        
  175.  
  176. MR_CHORD:        Button  (Menu(MR_MENU))         
  177.  
  178. LMR_RESET:       Button  (Menu(RESET_MOUSE))         
  179.  
  180. ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  181.  
  182. ;       MENU DEFINITIONS
  183.  
  184. LM_MENU: Menu(
  185.             Title   ("Main Commands")
  186.             Position(UpperLeft(0,1))
  187.             Item    ("             ",  Keys())
  188.             Item    ("List     File",  Keys("l")
  189.                                        Cursor(Link1_Cursor)
  190.                                        Button  (Left=Page_Up)
  191.                                        Button  (Middle=Esc_File_Buttons)
  192.                                        Button  (Right=Page_Dn))
  193.             Item    ("Edit     File",  Keys("e"))
  194.             Item    ("Execute  File",  Keys("x"))
  195.             Item    ("─────────────",  Keys([Esc]))
  196.             Item    ("Copy   Tagged",  Keys("k"))
  197.             Item    ("Delete Tagged",  Keys([a-d]))
  198.             Item    ("Move   Tagged",  Keys("m"))
  199.             Item    ("─────────────",  Keys([Esc]))
  200.             Item    ("Enter Command",  Keys("c")
  201.                                        Cursor(File_Cursor)
  202.                                        Button  (Left=Up_Key)
  203.                                        Button  (Middle=ESC_Key)
  204.                                        Button  (Right=Rtn_File_Buttons))
  205.             Item    ("Drive  Change",  Menu(DRIVES))
  206.             Item    ("Dir   Add/Del",  Keys([c-d])
  207.                                        Cursor(Dir_Cursor)
  208.                                        Button  (Left=File_Buttons)
  209.                                        Button  (Middle=Top_Dir)
  210.                                        Button  (Right=CR))
  211.             Item    ("─────────────",  Keys([Esc]))
  212.             Item    ("PageUp  Files",  Keys([PgUp]))
  213.             Item    ("PageDn  Files",  Keys([PgDn]))
  214.             Item    ("─────────────",  Keys([Esc]))
  215.             Item    ("Tag       All",  Keys([a-t]))
  216.             Item    ("Untag     All",  Keys([a-u])))
  217.  
  218. LR_MENU:  Menu(
  219.             Title   ("Misc Commands")
  220.             Position(UpperLeft(32,1))
  221.             Item    ("             ",  Keys())
  222.             Item    ("Help  Summary",  Keys("?"))
  223.             Item    ("Help Expanded",  Keys([F10])
  224.                                        Cursor(File_Cursor)
  225.                                        Button  (Left=HOME_Key)
  226.                                        Button  (Middle=Esc_File_Buttons)
  227.                                        Button  (Right=END_Key))
  228.             Item    ("─────────────",  Keys([Esc]))
  229.             Item    ("Attrib  Files",  Keys("a"))
  230.             Item    ("Attrib    Dir",  Keys([c-a]))
  231.             Item    ("─────────────",  Keys([Esc]))
  232.             Item    ("Backup  Files",  Keys("b"))
  233.             Item    ("─────────────",  Keys([Esc]))
  234.             Item    ("Color Changes",  Keys([a-k]))
  235.             Item    ("EGA 43/25 Tog",  Keys([a-m]))
  236.             Item    ("─────────────",  Keys([Esc]))
  237.             Item    ("Find     File",  Keys("f"))
  238.             Item    ("Free    Space",  Menu(FREE_SPACE))
  239.             Item    ("─────────────",  Keys([Esc]))
  240.             Item    ("Print  Tagged",  Keys("p"))
  241.             Item    ("Rename   File",  Keys("r"))
  242.             Item    ("Select & Sort",  Keys([a-s])))
  243.  
  244. MR_MENU: Menu(
  245.             Title   ("Misc Commands")
  246.             Position(UpperRight(79,1))
  247.             Item    ("             ",  Keys())
  248.             Item    ("┌───MACROS──┐",  Keys())
  249.             Item    ("Shft  F1 - F9",  Keys([s-F10])
  250.                                        Cursor(Macro_Cursor)
  251.                                        Button (Left=TAB_Key)
  252.                                        Button (Middle=Esc_File_Buttons)
  253.                                        Button (Right=Rtn_File_Buttons))
  254.             Item    ("Ctrl  F1 - F9",  Keys([c-F10])
  255.                                        Cursor(Macro_Cursor)
  256.                                        Button (Left=TAB_Key)
  257.                                        Button (Middle=Esc_File_Buttons)
  258.                                        Button (Right=Rtn_File_Buttons))
  259.             Item    ("Alt   F1 - F9",  Keys([a-F10])
  260.                                        Cursor(Macro_Cursor)
  261.                                        Button (Left=TAB_Key)
  262.                                        Button (Middle=Esc_File_Buttons)
  263.                                        Button (Right=Rtn_File_Buttons))
  264.             Item    ("             ",  Keys())
  265.             Item    ("┌───LINKS───┐",  Keys())
  266.             Item    ("1-9     Links",  Keys("0")
  267.                                        Cursor(Link1_Cursor)
  268.                                        Button (Left=Link2_Buttons)
  269.                                        Button (Middle=Esc_File_Buttons)
  270.                                        Button (Right=Rtn_File_Buttons))
  271.             Item    ("Alt 1-9 Links",  Keys([a-0])
  272.                                        Cursor(Link1_Cursor)
  273.                                        Button (Left=Link2_Buttons)
  274.                                        Button (Middle=Esc_File_Buttons)
  275.                                        Button (Right=Rtn_File_Buttons))
  276.             Item    ("             ",  Keys())
  277.             Item    ("Edit/List Chg",  Keys([c-e])
  278.                                        Cursor(Macro_Cursor)
  279.                                        Button (Left=HOME_Key)
  280.                                        Button (Middle=Esc_File_Buttons)
  281.                                        Button (Right=Rtn_File_Buttons))
  282.             Item    ("             ",  Keys())
  283.             Item    ("─────────────",  Keys([Esc]))
  284.             Item    ("Prog   Limits",  Keys([c-l]))
  285.             Item    ("Rescan   Tree",  Keys([a-r]))
  286.             Item    ("             ",  Cursor (Dir_Cursor))
  287.             Item    ("Scrn  Refresh",  Keys("s"))
  288.             Item    ("Volume ID Tog",  Keys([c-v])))
  289.  
  290. DRIVES:   Menu(
  291.             Title   ("DRIVES")
  292.             Position(UpperLeft(1,1))
  293.             Item    (" ",              )
  294.             Item    ("A",              Keys("da" [Enter]))
  295.             Item    ("B",              Keys("db" [Enter]))
  296.             Item    ("C",              Keys("dc" [Enter]))
  297.             Item    ("D",              Keys("dd" [Enter]))
  298.             Item    ("E",              Keys("de" [Enter])))
  299.  
  300. FREE_SPACE: Menu(
  301.             Title   ("DRIVES")
  302.             Position(UpperLeft(1,1))
  303.             Item    (" ",              )
  304.             Item    ("A",              Keys([a-f] "a" ))
  305.             Item    ("B",              Keys([a-f] "b" ))
  306.             Item    ("C",              Keys([a-f] "c" ))
  307.             Item    ("D",              Keys([a-f] "d" ))
  308.             Item    ("E",              Keys([a-f] "e" )))
  309.  
  310. RESET_MOUSE: Menu(
  311.             Title   ("RESET MOUSE")
  312.             Position(LowerCenter(40,20))
  313.             Item    ("File  Mouse",    Cursor (File_Cursor)
  314.                                        Button (Left=Dir_Buttons)
  315.                                        Button (Middle=Tag_it)
  316.                                        Button (Right=UnTag_it))
  317.             Item    ("Dir   Mouse",    Cursor (Dir_Cursor)
  318.                                        Button (Left=File_Buttons)
  319.                                        Button (Middle=Top_Dir)
  320.                                        Button (Right=CR)))
  321.  
  322. ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  323.  
  324. ;       MOUSE DEFINITION
  325.  
  326. Mouse(
  327.         Cursor           (Dir_Cursor)
  328.  
  329.         Left             (File_Buttons)   
  330.  
  331.         Middle           (Top_Dir)       
  332.  
  333.         Right            (CR)            
  334.  
  335.         LeftMiddle       (LM_CHORD)      
  336.  
  337.         LeftRight        (LR_CHORD)      
  338.  
  339.         MiddleRight      (MR_CHORD)
  340.  
  341.         LeftMiddleRight  (LMR_RESET))
  342.