Hi all,
I am trying to send a string to a window that could be either active or inactive.
hwnd does match up with the same value in spy++, so I know it's getting the correct window handle.
The window is a game and does not have any child windows so I'm not sure what to do with that..I did manage to get the title to change but that's not what I want and I can't even get it to do that again. I want to send a string to that window.
Code below..
Code:Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As String) As Long Dim hwnd As Int32 = FindWindow(vbNullString, "The 4th Coming") Dim txttosend As String = "test" SendMessage(hwnd, WM_SETTEXT, 0, txttosend)


Reply With Quote


