Hey all i am trying to get some text form an external program. Currently i am using this code:
Dim lngHWND As Long
Dim lngHWNDF As Long
Dim lngID As Long
Dim lngChild As Long
Dim lngRet As Long
lngHWND = FindWindow(vbNullString, "Client - Main")
Do
lngChild = FindWindowEx(lngHWND, 0&, "ThunderRT6Frame", vbNullString)
If lngChild <> 0 Then
lngID = GetWindowLong(lngChild, GWL_ID)
MsgBox("Child HWND: " & Hex(lngChild) & " ID: " & lngID)
lngRet = CloseHandle(lngChild)
End If
Loop Until lngChild = 0
lngRet = CloseHandle(lngHWNDF)
lngRet = CloseHandle(lngHWND)
I am getting values for both the lngHWND, lngHWNDF and the lngChild. However, they are only values (numbers) and not the text itself.
Here is an image of the program i am trying to get the text from:
How can i go about getting the text from those items it finds?
David