
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
|
|
|