I used to know vb6 and I need to make a quick application. I hope someone can help me with how to send keys to a minimized window in vb.net
thanks
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.
Normally you can send keys with the
SendMessageAPI function, but I’m not sure if it would be affected in any way by the window being minimized, I don’t think so but I haven’t tried.To use a Windows API function from VB.Net you need to use PInvoke to call it, you can find information about how to do that on this page.
The MSDN page for SendMessage might also be useful for information about how it works.
Btw, you probably want to use the
WM_CHARmessage which is0x0102.