简体   繁体   中英

How to simulate user input in C#

How do I set the cursor position in a window of a third party programm (not the screen location, I need it for the window location)?

And how can I paste (Ctrl + V) something to this window?

I would suggest reading up a bit on Coded User Interface Tests. They are actually fairly easy to implement on a basic level. http://msdn.microsoft.com/en-us/library/dd286726.aspx

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