I’ve got a C# problem,
I am able to simulate a click to the current window, but I would like to do it if the window is minimized or hidden.
Any ideas?
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.
Here is a fully working snippet which will give you the window handle, target sub window and post a message to that subwindow.
At the moment it will send the
Gcharacter to notepad “Untitled” (open a new notepad, do nothing.You can find the sub-window using
spy++which comes with visual studio.Here is an example using SendInput to send mouse events:
Sorry this took so long, here’s the C# version: