vb.net - sendkey to window

Hello there,
I would like to know how can I somehow make a button and make the vb.net app sendkey to notepad like "hello world"
Who is Participating?

Improve company productivity with a Business Account.Sign Up

CM2013Connect With a Mentor Commented:
the answer is in your question itself: sendkey. Bing it !?

If its just making a button, then that would do. If its complex capturing windows at run time and sending data to them its a different logic, let me know.
XK8ERAuthor Commented:

doesnt work because notepad is already open and there is text already in it
CM2013Connect With a Mentor Commented:
Process ID can be used to send the message. You can use hooks instead as well, but thats a bit more work.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.