Insert text into the textbox of another application
问题 How do I, using C# or C++, insert text into the textbox of another application? I did this a long time ago and seemed to remember something about using the applications HWND. But since that change for every instance of the application I feel that I fon\'t remember the complete story. Do I somehow get a list of running apps, extract the one I want, get the HWND from that and then... hmm.... then what? :) 回答1: Use FindWindowEx() to find the handle (HWND) and then send the WM_SETTEXT message