GESTURES.DLL 1.0
----------------

1. What is it?
--------------

Gestures implements simple mouse stroke controlling system, same
that can be found in Opera browser, at system level.


2. How it works?
----------------

1. Right click with your mouse everywhere on desktop or any window
and start drag (or "paint") your gesture. 

2. As long as underlying window is not in hardcoded list of excluded 
windows, you can see that your gesture is painted onto screen as 
thin blue line.

3. After finishing your gesture, you will release mouse button.

4. Now, if you managed to draw your gesture correctly, module will
search your predefined list of gestures and will do appropriate
action, if any match has been found.

5. Blue line, symbolising the gesture is cleared up.

6. If timeout expires, or gesture is not found in the list, nothing
happens.



3. Notes
--------

1. If you interrupt drawing your gesture for too long, timeout will 
expire and nothing happens. You will be notified with the sound about 
this. Sound and timeout values are configurable.

2. Gestures module will capture your right-click. If you like to drag 
with your right mouse button (files in explorer, for example), there is 
easy way how to do this. Just right-click and wait a moment for timeout
to expire (it is very short time period) and after you hear the timeout
sound, you can drag your files as usual. 
Simple right click (without dragging) works just normal, as usual.

3. As you will see later in the document, there are some predefined 
actions for every mouse stroke (i call it stroke, or gesture or glick). 


4. How to define gestures?
--------------------------

To define gestures, imagine 3 to 3 matrix:

 1 2 3
 4 5 6
 7 8 9

and imaginary put your mouse movement into it, you will get resulting
sequence:

so, to define "L" gesture, it is 14789
to define "U" gesture, it is 1478963
to define "Z" gesture, it is 1235789
and so on.

you may define more gestures on one line, first gesture recognized
will be used. it is useful when you have more complex (or circular)
gestures that may be recognized in more ways, for example for "L"
gesture, it may be 14789, 1478, or 4789, depending on its symmetric
proportions.

same as for "C", it may be 3214789, or 32489, or 324789 or 321489, or
214789... etc.


5. How to set gestures in STEP.RC?
----------------------------------

See enclosed EXAMPLE.RC file for more complex examples.

Parameters:
------------------

StrokeDrawing
	Switch gesture drawing (painting) on

StrokeColor 0000FF
	Color of gesture line

StrokeNotifySound c:\sounds\down.wav
	Sound that will be played after successful gesture recognition

StrokeTimeoutSound c:\sounds\msgback.wav
	Sound that will be played after gesture-timeout

StrokeTimeout 500
	Gesture timeout in milliseconds


Definition:
------------

*stroke "gesture_name" gesture_sequence [gesture_sequence2 ...]
*stroke action action_parameter [command_parameters]
*stroke ~

Actions:
--------
action_parameter can be bang-command, or one of predefined actions:

.maximize
	Maximize window under cursor

.minimize
	Minimize window under cursor

.restore
	Restore window under cursor to its normal size

.close
	Close window (application) under cursor

.browseBack
	Browser back function - actually sends Alt+Left to window under cursor

.browseForward
	Browser forward function - actually sends Alt+Right to window under cursor

.browseReload
	Browser reload function - actually sends Ctrl+R to window under cursor

.exec c:\dev\shutdown.lnk
	Execute program or document


6. Acknowledgements
-------------------

Module uses GPLed library LIBSTROKE:
http://www.etla.net/~willey/projects/libstroke/



7. Credits
----------

author: Pavel Vitis, (c)2001
e-mail: pavel.vitis@seznam.cz
web   : http://floach.pimpin.net/pavel/, http://come.to/lsg/
