Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
現在実行中のアプリケーションの名前を含むコンボボックスを持つアプリケーションがあります。msdn ライブラリから理解したように、SendKeys メソッドはアクティブなアプリケーションにのみキーを送信できます。.NET で非アクティブなアプリにもキーを送信することは何とか可能ですか? または少なくとも WinAPI で?
API関数を使用しSendMessage()て、非アクティブなウィンドウにキーストロークを送信できます。
SendMessage()