home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 152.lha / DMouse_v1.09 / dmouse.doc < prev    next >
Text File  |  1988-04-26  |  9KB  |  173 lines

  1. V1.09                      DMOUSE.DOC          31 Jul 1988
  2.                           Matthew Dillon
  3.                           891 Regal Rd
  4.                           Berkeley, California 94708
  5.                           USA
  6.         WORKBENCH USERS:    PLEASE READ THE REVISION HISTORY FOR V1.09 FOR
  7. SOLUTION TO INTUITION WINDOWTOFRONT() BUG.
  8.         YAIH (Yet Another Input Handler)... nahh, like DMouse better...
  9. for "Dillon's Mouse"???   Placed in PUBLIC DOMAIN because it's such a
  10. nifty program!
  11.         After looking at and rejecting several mouse-intuition input
  12. handler enhancers (you know, accelerate the mouse, click-to-front, etc...)
  13. and finding them all useless, I have written my own.
  14.         - Any option can be turned off or modified.
  15.  
  16.         - Screen blanks if keyboard or mouse is idle > N1 secs (def 300)
  17.             (mouse also blanks even if mouse blanking not turned on)
  18.         - The Pesky Mouse blanks if mouse is idle > N2 secs (def 5)
  19.         - Auto Activate a window when the mouse is moved over it.  Window
  20.           also activated (if not already active) when you type.  These
  21.           two features may be turned on/off independantly
  22.         - Mouse Accelerator.  Back feeds power into the mouse unit;
  23.           give it a nudge and it is guarenteed to penetrate up to an
  24.           inch and a half of wall plaster (programmable depth).  Once
  25.           you start using it, you won't be able to switch back!
  26.         - Programmable command-key and command string ala PopCli, default
  27.           left-Amiga ESC.
  28.         - Left Mouse Button click in window brings it to the front
  29.             DOES NOT BRING THE WINDOW TO THE FRONT IF IT IS ALREADY
  30.             IN THE FRONT.  Other programs would call WindowToFront() on
  31.             every click, which is horrible if you have a simple-refresh
  32.             window.  WindowToFront() is NOT called for backdrop windows!
  33.  
  34.             The qualifier along with the LMB is now settable with the -l option.
  35.           # clicks required is settable.
  36.         - Hold LMB, click Right Mouse Button .. Window to Back!  Great
  37.           for cycling windows.  See next feature for more info.
  38.           (the qualifier, normally the left mouse button, can be set with
  39.            the -R option).
  40.         - Same sequence as above, but if there is no window under the
  41.           current mouse position, there is only one window on the screen,
  42.           or the window under the mouse is a BACKDROP window, the
  43.           sequence cycles through Screens!
  44.         - NO DAMN CLOCK.  Use another utility to get a clock.  No other
  45.           glossy thrills.  DMouse is short, sweet, and functional.
  46.         - Does not use a CLI, can be placed in workbench startup sequence.
  47.           DO NOT 'RUN' DMOUSE!
  48. INSTALLATION:
  49.  
  50.     Place dmouse-handler in L: (or in the 'current' directory when DMOUSE
  51.     is run).
  52.     WORKBENCH USERS!!!!!!!!!!   There appears to be a bug in intuition's
  53.     WindowToFront() call, which can lock up intuition when workbench
  54.     icons are active.  Under the defaults, this will occur whenever you
  55.     depress the left mouse button over an icon.
  56.     A partial fix is in place V1.07 and beyond.  However, if you find
  57.     it still freezing up, the problem can be avoided as follows:  Either
  58.     turn off the left-mouse-button window- to-front feature (-L0) or leave
  59.     it on and set the number of clicks required to 2 (-c2) (and don't use
  60.     the feature while your mouse is over an icon).  V1.09 gives you yet
  61.     a THIRD option which is even more preferable ... change the qualifier
  62.     that goes along with the left mouse button to something other than 0,
  63.     like 3 (either shift). -l3
  64. EXECUTE FROM A CLI (e.g. WORKBENCH STARTUP SCRIPT), example:
  65.     1> DMouse -C newcli "<nil: >nil: con:320/120/320/80/Shell c:shell.exe"
  66.     There is no need to 'RUN' DMouse.  A double set of quotes may be
  67.     required for the program to work properly with ConMan.
  68.     NOTE:   Your script in c:shell.exe should prefix all commands with a
  69.             full path or the boot drive (usually DF0:) will be accessed,
  70.             causing a requestor to appear if no disk is inserted.
  71. TO KILL:
  72.     1> dmouse QUIT
  73. SOURCE:
  74.     Source is compileable under Aztec, +L (32 bit ints) and suitable
  75.     precompiled include file (remember the precompiled include file must
  76.     be precompiled with +L also).  Use the c32.lib library (Aztec C)
  77.     Precompiled include files:  All amiga includes that are in
  78.     sub-directories (i.e. */*.h, but not things like <stdio.h>)
  79. COMMAND LINE ARGUMENTS:
  80.  
  81.     If DMouse is already running, any specified options will be
  82.     incorporated.
  83.     quit        QUIT .. remove DMouse
  84.     -h          HELP
  85.     -a#         Set acceleration to #.  Default 3,           1 disables option
  86.     -t#         Set mouse acceleration threshhold, pixs/ev. default 0.
  87.     -s#         Set screen timeout to # (secs), Default 300, 0 disables option
  88.     -m#         Set mouse timeout to # (secs), Defalut 5,    0 disabled option
  89.     -c#         Set # of clicks required to bring window to front (def 1)
  90.     -p#         Set input handler priority (def 51) should always be > 50
  91.                 (initial invocation only)
  92.     -w#         0 = use UpFrontLayer() etc... 1 = use WindowToFront() etc...
  93.                 WindowToFront() properly refreshes SIMPLE_REFRESH windows
  94.                 but a bug intuition can cause it to crash the machine if
  95.                 a workbench icon is active at the time.
  96.     -L0/1       Disable/Enable left-button brings window to front
  97.     -A0-3       Disable/Enable AUTO-ACTIVATE. Bit #0 = mouse auto-activate
  98.                                                   #1 = keyboard auto-activate
  99.                     (default 3, which enables both)
  100.  
  101.     -lqqqq      Set Qualifier (HEX) with LMB for Window To Front (default is
  102.                  0, meaning no qualifier).  Example:    -l0003 sets it to
  103.                  either shift key.
  104.     -Rqqqq      Set Qualifier (HEX) with RMB for Window To Back (default is
  105.                  the LMB qualifier).  Setting the qualifier to 0 disables
  106.                  the feature.
  107.     -Kcccc      Set Keycode (HEX)   for command key (default 0045)
  108.     -Qqqqq      Set Qualifier (HEX) for command key (default 0040)
  109.     -C CMD      Set Command to run.  Default is NEWCLI.  Remaining arguments
  110.                 on command line is the command.
  111.                         QUALIFIERS (always entered in HEX)
  112.     0001    Left Shift
  113.     0002    Right Shift
  114.     0004    Caps Lock
  115.     0008    Control
  116.     0010    Left Alt
  117.     0020    Right Alt
  118.     0040    Left Amiga Key
  119.     0080    Right Amiga Key
  120.     0100    Numeric Key Pad Key (not useful for dmouse)
  121.     0200    Repeat              (not useful for dmouse)
  122.     0400    Interrupt           (not useful for dmouse)
  123.     0800    Multibroadcast      (not useful for dmouse)
  124.     1000    Middle Mouse Button
  125.     2000    Right Mouse Button
  126.     4000    Left Mouse Button
  127.         Note:   Combinations are allowed, in which case any one of the
  128.                 selected qualifiers along with the left, right mouse button
  129.                 or command key will cause the appropriate action to occur.
  130. RELEASE HISTORY:
  131. V1.09
  132.     Workbench users probably want to use the following options: -w1 -l0003
  133.     These use WindowToFront() (your windows get refreshed properly), but
  134.     also requires you to depress a shift key + LMB to get the window-to-front
  135.     feature.
  136.         dmouse -w1 -l0003
  137.     -SELECTABLE USE OF UpFrontLayer() etc..  OR  WindowToFront() etc...
  138.      Workbench users should use WindowToFront() (-w1), while CLI users
  139.      probably want to use UpFrontLayer() (default).
  140.      Reason:    WindowToFront()/Back can crash the Amiga if called while
  141.      a workbench ICON is highlighted.  Unfortunetly, UpFrontLayer(), which
  142.      does not have the bug, also does not automatically refresh
  143.      simple-refresh windows!
  144.     -New option -lqqqq (SET QUALIFIER WITH LEFT MOUSE BUTTON TO GET
  145.      WINDOW-TO-FRONT FEATURE).  WORKBENCH USERS NOTE:  By setting this
  146.      qualifier to a shift key, for instance, you can safely move icons
  147.      around without crashing the machine because DMouse will not issue
  148.      the WindowToFront() call unless you are holding the qualifier key
  149.      down while pressing the left mouse button.
  150.     -Bug fixed thanks to user persistance!  If you disable mouse blanking,
  151.      and enable screen blanking (which blanks the mouse too when it
  152.      happens), hitting a key would bring back the screen but not the mouse.
  153. V1.08
  154.      Botched.
  155. V1.07
  156.     -All intuition calls are made from an independant process rather than
  157.      the input handler routine.  This also fixes a couple of deadlock bugs,
  158.      but not the workbench-icon deadlock bug.
  159.     -Mouse response is no longer jerky when the system is loaded down.
  160.     -Keyboard-Auto-Activate-Window independant of Mouse-Auto-Activate-Window
  161.      (enhanced -A option)
  162.     -No need to OR the -Q qualifier with 8000 anymore
  163.     -WindowToFront() never called for backdrop windows, which ought to fix
  164.      the workbench freeze bug and other problems.
  165.     -Mouse automatically blanked when screen blanks, whether mouse blanking
  166.      is enabled or not.
  167.     -Can set input handler priority (initial invocation only).
  168.     -New Timeouts go into effect immediately rather than after the
  169.      next mouse/keyboard event.
  170. V1.00-V1.06
  171.     Before Written history
  172.  
  173.