简体   繁体   中英

Interact with other desktop-applications in windows using C# winforms

I was wondering if its possible to interact with other programs someone with my program. For example clicking a button on another program etc. etc. I'm not sure if this is even possible but if it is could someone provide a little sample code in C#.

Thanks

You could just create and send messages to the other process. You will have to use P/Invoke for this from C# code.

Here is some code that should point you into the right direction.

您可以使用UI Automation与其他应用程序进行交互。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM