Close or control any windows app from command line or batch file by calling WinAPI 
Author Message
 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



Sun, 02 Nov 2003 13:20:09 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Close or control any windows app from command line or batch file by calling WinAPIWinAPI Suite (http://junior.apk.net/~leonid/guiless/wainfo.htm) includes

2. How to trap an arror when using Winzip command line in batch files

3. Piping results of command line call to file from ASP

4. Logon Batch to call a VBS that calls another batch

5. Piping results of command line call to file from ASP

6. command line app

7. Command line apps.

8. Found a free command line FTP app!

9. Executing command line apps

10. print postscript file from command line in window

11. Passing values into and out of Command Line application *and* command line prompt in vbscript

12. Scripting command line applications & Command Line Prompting

 

 
Powered by phpBB® Forum Software