Solved

vb.net - sendkey to window

Posted on 2013-06-03
4
362 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 48

Assisted Solution

by:Rgonzo1971
Rgonzo1971 earned 166 total points
Comment Utility
0
 
LVL 1

Accepted Solution

by:
CM2013 earned 334 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

771 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now