Name    : MOUSEHIDE.DLL
Version : 1.1
Purpose : Hide mouse cursor when key is pressed
Platform: Litestep load-module
Author  : Pavel Vitis
Date    : July 21, 2000



 Description 

This module automatically hides mouse cursor after defined count of keystrokes 
or after mouse inactivity, so the cursor does not cover typed text.
After any mouse activity the cursor is automatically revealed.


 Installation 

1. Copy all .DLL files into same directory.
2. Load module in step.rc as:

 LoadModule path_to_module\mousehide.dll

3. Define variable:

 MouseHideKeyCount - Amount of keystrokes needed to hide cursor (default is 1)

4. Try it, play with other settings, tweak it, report bugs, be happy... ;)



 Reference 


Commands:

 ; Amount of keystrokes needed to hide cursor (default is 1)
 MouseHideKeyCount 
 
 ; Timeout in ms to hide mouse after inactivity (0 = never, default)
 MouseHideTimeout 
 
 ; Sound played on mouse hide
 MouseHideSound <path>
 
 ; Sound played on mouse hide
 MouseShowSound <path>
 
 ; Startup delay in seconds - Install keyboard/mouse hook after another 
 ; startup programs do.
 MouseHideStartupDelay <sec>

 ; Play sound when hook is installed 
 MouseHideStartupSound <path>


Bangs:

 !MouseHideEnable           Enable module
 !MouseHideDisable          Disable module (does not show mouse, if hidden!)
 !MouseHideToggle           Toggle module
 !MouseHideKeyCount <n>     Keystroke count needed to hide mouse
 !MouseHideTimeout <ms>     Timed mouse hide 
 !MouseHide [F]             Hide mouse (F = forced, mouse activity doesn't reveal 
                            cursor)
 !MouseShow                 Show mouse (BTW, only way how to show forced hidden 
                            cursor)

Other:

  *MouseHideIgnore "ClassName" "OwnerClassName"

  This allows setting of windows/components that are ignored by MouseHide. 
  OwnerClassName can be empty/left-out.
  This feature is experimental, not fully tested.

  Function: Get class name of window under mouse cursor, if found in list, and 
  OwnerClassName is empty, do not hide mouse. If OwnerClassName is not empty
  and it is found anywhere in chain of window owners, do not hide mouse. Else
  continue as usual.



 Known problems 

1. To avoid interference please do not forget to unload another mouse-hide 
applications (for example CursorHider).

2. Axialis-Cursors will crash on mouse hide. This bug will be addressed in some
of next module version.

3. Some mouse utilities (Shove-It) when loaded after mousehide.dll may cause 
problems / bad module function. To avoid this, always load mousehide.dll *after* 
these utilities, i.e. use MouseHideStartupDelay. 

4. One user reported mouse not hiding in MS Outlook Express 5. Not tested yet.



 History 

1.1
  + Added MouseHideStartupDelay
  + Added MouseHideStartupSound (to aid setup of correct startup delay)
  * Do hide after key-up event only, ignore key-down. Solves key+drag bug.
  * Do not hide mouse while mouse button is down (timed hide during mouse drag)
  + Added *MouseHideIgnore - experimental

1.0
  * Initial release. Tested on Win98 / build 0.24.5, 10/21/99.



Pavel Vitis
mailto:pavel.vitis@seznam.cz
http://floach.pimpin.net/pavel/ (main site)
http://lsg.come.to/ (mirror site)