I have a string variable. Now i want to store a string value into a control in another application without using the clipboard. I wanna do it manually.
I think i should use SendMessage(WM_SETTEXT). Which way do you suggest (with an example please)?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As your application knows the string it has to send…
You can set the focus to the target window/application if needed.
Then you process each char contained in your string to simulate their key strokes. Something like that (too basic to work exactly as you expect, but the idea is here… ;o)):
If your string uppercase, …, you need to simulate the shift, ctrl, …