----------------------------------------------------------------
winrect.dll   v1.0                               August 08, 2001
----------------------------------------------------------------
Pavel Vitis
pavel.vitis@seznam.cz


================================================================
1. Description

This module alows you to set windows positions/sizes/state.


================================================================
2. History

v1.0 / August 08, 2001
	* First release


================================================================
3. Installation

3.1. Files installation:

Copy WINRECT.DLL and KMHOOK.DLL directly into your Litestep 
directory. If you are upgrading from previous version, first 
ensure that both modules HOTSPOTS.DLL and KMHOOK.DLL are unloaded, 
otherwise you will encounter file-sharing errors when trying 
to overwrite these files. 

You do not need to install KMHOOK.DLL, if you are sure you already 
have the latest version installed.


KMHOOK.DLL may be shared by another modules too, so unload all
modules that use it (currently HOTSPOTS.DLL, ONIDLE.DLL,
MOUSEHIDE.DLL, GESTURES.DLL, WINRECT.DLL). Issue !UnloadModule 
bang on all these modules, or simply quit Litestep/PureLS. 
Then overwrite files with their new versions.

It is highly recommended to use newest version of KMHOOK.DLL.
You can always download the latest version at:
http://lsg.come.to/other/kmhook.zip


Load module in STEP.RC file:

  LoadModule "c:\litestep\winrect.dll"

or via bang command:

  !ReloadModule "c:\litestep\winrect.dll"


================================================================
4. Settings

 4.1. STEP.RC syntax is as follows:

  *winrect "name" "module" "window classname" "window title" [ L T R B | min | max | hide | close ]


 4.2. "name"

descriptive name of the item. This name is used to reference 
the item in other operations/bangs.


 4.3. "module", "window classname", "window title"

At least one of these items should be non-empty. These items
help identify desired window. To gain these values, use some
of window-spying tools. 

I reccomend Spy&Capture: http://come.to/kobik/

module name is name of executable that created window, in most cases,
for example LITESTEP.EXE. Do not use full path here, just the
name and extension part.

You may use wildcards here, for example "Netscape - *". 
See section 5. below.


 4.4.  [ L T R B | min | max | hide | close ]

You may choose one of these setings:

 1) specify absolute window coordinates:
	L = left
	T = top
	R = right
	B = bottom
 
 2) MIN to minimize window initially

 3) MAX to maximize window initially

 4) HIDE to hide window initially

 5) CLOSE to close window before it appears


================================================================
5. Notes:

 5.1. Wildcards in parameters

WINRECT.DLL uses LSAPI function match() to evaluate wildcards.

Taken from LSAPI.C source documentation:
---------
 '*' matches any sequence of characters (zero or more)
 '?' matches any character
 [SET] matches any character in the specified set,
 [!SET] or [^SET] matches any character not in the specified set.

 A set is composed of characters or ranges; a range looks like
 character hyphen character (as in 0-9 or A-Z).  [0-9a-zA-Z_] is
 the minimal set of characters allowed in the [..] pattern
 construct.
 Other characters are allowed (ie. 8 bit characters) if your
 system will support them.

 To suppress the special syntactic significance of any
 of `[]*?!^-\', and match the character exactly, precede it
 with a `\'.
---------

 5.2. How it works and why sometimes it doesn't work

WINRECT.DLL uses system-wide shell hook to detect windows 
creation. When some process creates window, WINRECT.DLL will 
intercept it and change its position/state. After then the window
is displayed/closed/hided according to your setting.

There is one limitation: Since shell hook intercepts main windows 
only, child windows are not detected and thus not changed. 


================================================================
6. Example step.rc entries:

See enclosed SAMPLE.RC file to get some examples.



================================================================
7. Contact & additional info, resources:

author: Pavel Vitis
mailto: pavel.vitis@seznam.cz
www   : http://floach.pimpin.net/pavel/
mirror: http://lsg.come.to/

Programmed in LCC-Win32 free C compiler/tools by Jacob Navia:
http://www.cs.virginia.edu/~lcc-win32/
