Attached is a program I have been working on for a little while. It uses
Jenda's Setupsup module. It lists all windows currently on the system. You
can set the options so that it only shows the Enabled and Visible WIndows.
You can have it show the unnamed windows or not. If you Double Click on a
window you can show or hide it, you can disable or enable it, you can
minimize, maximize, restore, kill and rename it. It's quite useful for
hiding outlook, because outlook will display a little envelope in the
taskbar when you get mail. I also use it to hide my xserver for connecting
to unix servers. You can setup windows to be automatically hidden, I have
outlook and xserver setup that way. You can also setup windows to be killed
automatically when hideit starts or you can setup items to be automatically
started, like outlook. I would like to put in a timer so that it refrehes
the list every so many seconds, but haven't figure out how to do that yet.
Right now it only refreshes when you activate the window or rightclick on
the taskbar icon. I would also like to figure out a way to determine what
the previously selected window was so that you can right-click on the
taskbar icon and it will automatically hide the last window you were working
with. But those are minor issues.
I originally wrote the program using listboxes, but I wanted a way
to display some useful information about each window, so I went to
Listviews, well there are some major problems. I wish there was more
consistency between the two objects. I finally figured out how to get the
text from a selected item, but something is wrong. Try the rename and kill
functions, they give usage commands, but there is no reason they should. It
might have something to do with the way I am getting the window id. I offer
this program out in hopes that someone with experience with listviews and
setupsup can look at my code and give me some suggestions or help me with
this little program. it's a rather useful tool and my hopes are that I can
get it to the point where I can hide annoying windows that are VERY, VERY
persistent at staying open. Well, sorry for being long winded but I wanted
to explain this. Please let me know if you want to help.
Thanks!
Tim Thomas
<<hideit.zip>>
----------------------------------------------------------------------------
---------------------
Tim Thomas
Unix Systems Administrator
Lockheed Martin EIS · Denver Data Center
303-430-2281 · Pager 800-545-3704
mailto:[EMAIL PROTECTED]
Pager: mailto:[EMAIL PROTECTED]
----------------------------------------------------------------------------
---------------------
hideit.zip