Send key strokes to another application C#

前端 未结 6 792
生来不讨喜
生来不讨喜 2021-01-16 00:15

I need to automate FileMon.exe to startup with filters, save out the log it generates, and then exit.

My solution has been to write an assist application that will d

6条回答
  •  一整个雨季
    2021-01-16 00:39

    As I know, you have to invoke some of native APIs:

    -FindWindow to find parent windows you want to work with

    -FindWindowEx to find true windows you'll send message to

    -SendMessage to send key strokes to those windows

    Details of these APIs, refer at MSDN :)

提交回复
热议问题