0

Can I SendKeys to a selected window in c#?

The Program knows the window which it has to send it and the window not really necessary to be the active window. I just want to give the program window name and send into it.

EX : I type application name (notepad for example) and not really necessary to be focused Upon the meant window.

5
  • Elaborate on your idea. I can't quite get it. Is my assumption correct? 1. Record typing input on notepad 2. Select a window and using program to simulate keyboard input, where data is record in 1.? Commented Mar 16, 2020 at 0:19
  • @Louis OP is saying that they want to use SendKeys with a non-active window. Commented Mar 16, 2020 at 0:20
  • This sounds like a P/Invoke situation. Commented Mar 16, 2020 at 0:25
  • stackoverflow.com/questions/10013900/… and stackoverflow.com/questions/21339502/… might help. Commented Mar 16, 2020 at 0:33
  • @John sorry for the question actually i have already joined here Commented Mar 16, 2020 at 0:36

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.