Hi everyone, I ran into a road block and cant seem to find anything on google.
I need to check all open windows/processes to see if certain software is running on the system. I was going to go the route of using core api from user32 for findwindow and so on, but then I came across using Process.Getproc esses and was very happy to see it was easy to get all processes and MainWindowTitle
However... if the software has child windows or multiple windows open it does not get the title of these "sub windows". An example is an application that has 2 windows open from the same exe. Is there anyway to grab all window titles of a process using this same logic?
I need to check all open windows/processes to see if certain software is running on the system. I was going to go the route of using core api from user32 for findwindow and so on, but then I came across using Process.Getproc esses and was very happy to see it was easy to get all processes and MainWindowTitle
Code:
Dim poc() As Process = Process.GetProcesses() For i As Integer = 0 To poc.Length - 1 Try msgbox poc(i).mainwindowtitle Catch ex As Exception MsgBox(poc(i).ProcessName.ToString & " " & ex.Message) End Try Next
Comment