Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

vb.net - sendkey to window

Posted on 2013-06-03
4
Medium Priority
?
383 Views
Last Modified: 2013-06-18
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"
0
Comment
Question by:XK8ER
  • 2
4 Comments
 
LVL 53

Assisted Solution

by:Rgonzo1971
Rgonzo1971 earned 664 total points
ID: 39215742
0
 
LVL 1

Accepted Solution

by:
CM2013 earned 1336 total points
ID: 39216639
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.
0
 
LVL 1

Author Comment

by:XK8ER
ID: 39217233
process.start("notepad")

doesnt work because notepad is already open and there is text already in it
0
 
LVL 1

Assisted Solution

by:CM2013
CM2013 earned 1336 total points
ID: 39217593
Process ID can be used to send the message. You can use hooks instead as well, but thats a bit more work.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Simulator games are perfect for generating sample realistic data streams, especially for learning data analysis. It is even useful for demoing offerings such as Azure stream analytics, PowerBI etc.
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question