Solved

vb.net - sendkey to window

Posted on 2013-06-03
4
374 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 52

Assisted Solution

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

Accepted Solution

by:
CM2013 earned 334 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 334 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

Create CentOS 7 Newton Packstack Running Keystone

A bug was filed against RDO for the installation of Keystone v3. This guide is designed to walk you through the configuration for using Keystone v3 with Packstack. You will accomplish this using various repos and the Answers file.

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.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

617 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