BOWIEM
01-02-2005, 12:16 PM
I am relatively new to VB and am making my first foray into using API's. I have a project that I am working on that requires me to access an open window. I cannot get the handle for the window through GetWindow() because the titlebar text for the target window will be different each time that I run the program and I am unsure what the class for the program is.
I am hoping to use Enumwindows() to get a listing of the titlebar text for open windows on my computer into an array. I could then use string functions to compare the items in the array to text that I know would be in the target window that I am searching for.
The problem is that I am having a heck of a time getting the Enumwindows API to work. Is there anyone out there who could step me through it? I would really appreciate it! Thanks.
I am hoping to use Enumwindows() to get a listing of the titlebar text for open windows on my computer into an array. I could then use string functions to compare the items in the array to text that I know would be in the target window that I am searching for.
The problem is that I am having a heck of a time getting the Enumwindows API to work. Is there anyone out there who could step me through it? I would really appreciate it! Thanks.