tags:

views:

449

answers:

1

Hi, I have an application with combobox that contains names of currently running applications. As I understood from msdn library, SendKeys method can send keys only to active application. Is it somehow possible in .NET, to send keys also to inactive app? Or at least in WinAPI ?

+1  A: 

You can use the SendMessage() API function to send keystrokes to an inactive window.

MusiGenesis