-2

I want to send keys to another window followed by the enter key. I have tried researching on google and have found no luck. Thanks for your help.

1 Answers1

0

SendKeys(...) only sends to the active window, so you can not use it with the Enter key.

You could try P/Invoking PostMessage(...) with WM_KEYDOWN and WM_KEYUP.

Sam Axe
  • 33,313
  • 9
  • 55
  • 89