click on a button in another application from my C# application?

后端 未结 1 540
悲哀的现实
悲哀的现实 2020-12-05 11:51

I want to click on a button in another application from my C# application ,
and I don\'t have the source code for the application that contains the button

let

相关标签:
1条回答
  • 2020-12-05 12:19

    Yes, it's not too complicated. You can use FindWindowEx to get the window handle, then iterate through the windows elements and use sendmessage or postmessage to send the WM_Click message.

    Here's a codeproject project that does exactly what you want.

    Code project

    0 讨论(0)
提交回复
热议问题