VB-Help-WinAPI-Task-Manager 
Author Message
 VB-Help-WinAPI-Task-Manager

 I know this is lame, but...
 I need help determining the titles of open windows (using VB6) so that I
can
 activate them and send keys to them in order to do 'batch' processing
 through a GUI that doesn't support batch processing.
 I remember doing this using VB3 and the Windows API, but I can't find
 the source, nor do there seem to be any current articles on the net.
 Can you help?

 Jeff



Fri, 05 Oct 2001 03:00:00 GMT  
 VB-Help-WinAPI-Task-Manager
Try this function:

Public Declare Function GetWindow Lib "user32" Alias "GetWindow" (ByVal hwnd
As Long, ByVal wCmd As Long) As Long

I found an example of using it at
http://www.kather.net/VisualBasicSource/VBTips/201.txt

It allows you to get the handle of the first window, then cycle through the
rest of the windows. Once you have the handle, you should be able to get the
caption and the rest should be history.

Good Luck,

Glenn Walker


| I know this is lame, but...
|  I need help determining the titles of open windows (using VB6) so that I
| can
|  activate them and send keys to them in order to do 'batch' processing
|  through a GUI that doesn't support batch processing.
|  I remember doing this using VB3 and the Windows API, but I can't find
|  the source, nor do there seem to be any current articles on the net.
|  Can you help?
|
|  Jeff
|
|
|



Tue, 09 Oct 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. VB-Help-WinAPI-Task-Manager

2. how to hide task display on task manager in NT

3. VB Newbie Question: Task Manager, Launch Bar, etc

4. Task Manager & VB

5. VB 3 code for Task manager like program

6. Im trying to make a task manager....HELP!!!

7. Activation of a VB application by the task manager

8. Hide VB App from Task Manager

9. Accessing Image Name in Task Manager from VB 5.0

10. Looking for a Task List manager add-in for the VBA IDE

11. Looking for a Task List manager add-in for the VBA IDE

12. Outlook COM Add In problem: Outlook wouldn't exit from Process in Task Manager

 

 
Powered by phpBB® Forum Software