
Close or control any windows app from command line or batch file by calling WinAPI
WinAPI Suite ( http://www.*-*-*.com/ ~leonid/guiless/wainfo.htm) includes
FindWindow.exe, SendMessage.exe and DropFiles.exe, with extended set of
command line parameters, allowing piping output results of one to another. I
was really amazed on how much you can do with just these three utilities -
pretty much anything!
Hell, I was actually able to run and control GUI application on NT as a
service - hard to debug, because you can't see anything, but it does work! I
believe NT uses some virtual desktop for services, so now it IS possible to
run GUI app as a service!
Even if you are not too keen with WinAPI - you still can benefit. The
website has several tutorials with sample batch files from simple (closing
Notepad) to advanced (creating and sending new mail with attachment in
Outlook Express). Finally, if you can't figure out how to automate the
task, you are always welcome to drop me a line - most likely, I'll be able
to help you.
I actually programmed this tool originally for myself, because I like to
automate any routine work on computer. Starting a windows app is not a
problem, but terminating one often is. Then I needed to automate sound
converter, which claimed to support batch conversion, but after I bought it,
I discovered it needs some clicking and typing - big disappointment! That's
when I decided to write something generic that allows me to control/script
any GUI app. Keyboard macro inherently unsafe, they depend on what windows
open, in which order and where the focus is.
The result - WinAPI Suite! check it out at www.guiless.com
Get GUI-less!
Leonid
---
http://www.*-*-*.com/
Guiless - Batch Suite Home