Zexor
Well-known member
- Joined
- Nov 28, 2008
- Messages
- 520
- Programming Experience
- 3-5
If i use this, it will give me the handle of the window "Test Window 1.0"
but what if the caption of the window changes? how do you find it? If it change to "Test Window 2.0" ? Program like Explorer caption always changes.
VB.NET:
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" _
(ByVal lpClassName As String, ByVal lpWindowName As String) As IntPtr
Dim hwnd As IntPtr = FindWindow(Nothing, "Test Window 1.0")
but what if the caption of the window changes? how do you find it? If it change to "Test Window 2.0" ? Program like Explorer caption always changes.