Hi,
In a vb routine I try to get the text in a statusStrip box named statusStrip1 of another program, but the returned string is "statusStri p1" while the correct string is "red ball:3".Looking for help from you.
Thanks in advance.
Some of the routine are here:
Notes: In the window "receive" there is a statusStrip box named statusStrip1 filled with a string "red ball:3".I want to get the string "text=red ball:3" while the result is "text=statusStr ip1".
In a vb routine I try to get the text in a statusStrip box named statusStrip1 of another program, but the returned string is "statusStri p1" while the correct string is "red ball:3".Looking for help from you.
Thanks in advance.
Some of the routine are here:
Code:
ahwnd = FindWindow("WindowsForms10.Window.8.app.0.202c666", "receive")
bhwnd = FindWindowEx(ahwnd, 0, vbNullString, "statusStrip1")
.........
Call RtlMoveMemory(bArr(0), TextLen, 2)
Call SendMessage(bhwnd, WM_GETTEXT, TextLen + 1, bArr(0))
Call RtlMoveMemory(bArr2(0), bArr(0), TextLen)
strRet = StrConv(bArr2, vbUnicode)
result.Text = "text=" & strRet
Comment