I'm trying to send some text to an inputput box using win32. Some text appears in the inputbox, but it is all jumbled (?????????a??????).
The code is :
SendMessage(myHandle, WM_SETTEXT, 1, "A")
I'm trying to send some text to an inputput box using win32. Some text appears in the inputbox, but it is all jumbled (?????????a??????).
The code is :
SendMessage(myHandle, WM_SETTEXT, 1, "A")
I don't know if this is the root cause, but as long as the target window (edit box in your case) is in the same process, you should call SetWindowText() rather than sending WM_TEXT directly.
HTH,