Find any window
Category:
System/APIType:
SnippetsDifficulty:
IntermediateAuthor:
DoWnloHoVersion Compatibility: Visual Basic 5
More information:
Sometimes you need to find a window using the API Call findwindow. If this window's caption changes, you can't
find that same window all the time. With this function, you can find any window just by knowing a few letters in the caption.
This will return the windows' hWnd. Also included is a function that will grab the window's caption. This is something that will
be useful to a lot of programmers.
Instructions: Copy the declarations and code below and paste directly into your VB project.
Declarations: