I have a code to retrieve a text from a 3rd party application and then bring back to my vb project, i use winspector to find the handle to the window and to the text, however i need to get onother text too but i can't find the class name for this text.
This is an example i use to get the text1: ( IS 100% WORKING)
Dim nHwnd As Long
Dim nEditHwnd As Long, mainContainerHwnd As Long
Dim nText As String * 256
nHwnd = FindWindow(vbNullString, inspector1windowname.Caption)
mainContainerHwnd = FindWindowEx(nHwnd, 0&, "#32770", vbNullString)
nEditHwnd = FindWindowEx(mainContainerHwnd, 0&, "Static", vbNullString)
SendMessageSTRING nEditHwnd, WM_GETTEXT, 256, nText
nextaction1.Caption = nText
'' end of code
the second text i need to get is the following
3rdparty window :
Players: 4 '<== this is the text i need to get back to my vb project
Now in winspector what i can see is this :
.. for some reason its doesnt display the 4 so if i try to get the players i will just get the text players and not Players: 4
What i have to do to get the number of the players?
thanks to all!