I want to send enter command to another application via c# 4.0 win forms. How can i do that ? The commands will be sent inside vmware virtual pc win xp sp3
thank you
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Your question was a little light on detail, so we might need more information to answer your question fully. For example, you mention that the program will be running in a virtual pc via VMWare. Does this mean that you wish the command to be sent to an application running on another PC? IF that is the case, you probably want to look at creating some sort of service, with a listener that intercepts messages via an IP port. There are lots of 3rd party tools and components that could help you there if you do a little research.
If you mean that you will have two apps running on the same system, perhaps you could use windows messaging.
In each of these cases, your app would then need to intercept some sort of message that your app would interpret as a keypress, either by triggering a component keypress in your app, or simply invoking your component’s Onkeypress handler for the Enter Key.
I’d be able to provide a more detailed answer if I knew more about what it was you were specifically trying to do.