Ok, I know how to find windows. How can I get the number of Windows that have the same name/class? For example, I want to count all the windows that are labeled "Hi" and then put that number in a variable. Here's what I have so far to find all the Winamp apps that are open. Please help me finish the code! Thanks
VB Code:
Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long hWndWinAMP = FindWindow("Winamp v1.x", vbNullString)




Reply With Quote