?
Solved

vb.net - sendkey to window

Posted on 2013-06-03
4
Medium Priority
?
388 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 54

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

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Question has a verified solution.

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

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The PowerShell Core 6.0 of .NET release is just the beginning. The upcoming PowerShell Core 6.1 would have artificial intelligence and internet of things capabilities. So many things to look forward to in the upcoming release.
There may be issues when you are trying to access Outlook or send & receive emails or due to Outlook crash which leads to corrupt or damaged PST file. To eliminate the corruption from your PST file, you need to repair the corrupt Outlook PST file. U…
If you are looking for an automated solution for backup single or multiple Office 365 user mailboxes to Outlook data file, then you can use Kernel Office 365 Backup & Restore tool. Go through the video to check out the steps to backup single or mult…
Suggested Courses
Course of the Month6 days, 21 hours left to enroll

593 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