one.dll 0.3                                             one.txt


General

One searches after a window by class and/or title and executes
a command if it's not found. If it on the other hand is found,
One brings the window to the top of the z-order.


Bangs

!One [class][title][not found command][found command]
The module searches for a window with the class and title
provided. If the class or title is omitted, only the other one
is used in the search. If a window isn't found in the search
the 'not found command' is executed. The optional 'found
command' is executed if the window is found. The found command
defaults to the internal command .focus that brings the found
window to the foreground.


Internal commands

The following commands can be used in the "found command" part
of the !One bang.

.focus
Sets focus to the found window.

.minimize
Minimizes the found window.

.maximize
Maximizes the found window.

.restore
Restores the size of the found window to what it was before it
was minimizes/maximized.

.close
Closes the found window.


Changes

Date         Ver  Changes
11 sep 2002  0.3  Added a few more internal commands (.close,
                  .minimize, .maximize and .restore)
12 jul 2002  0.2  You can now set a command to be executed if
                  the window is found
10 jul 2002  0.1  First public release


Feedback

If you have a bug report, feature request, or any kind of
feedback, feel free to email it to me at erik@alphafish.com.
For more info and other Litestep modules and programs, check
out www.alphafish.com


Sourcecode

The sourcecode for this module is distrbuted under the GNU
Public License. If you didn't get the sourcecode with this
module, you can download it from www.alphafish.com

_______________________________________________________________
Erik Christiansson, aka Sci                  erik@alphafish.com
