Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to send keystrokes to application UI automation -C#

i need to find out automationid for key board values? how to send keystrokes to application UI automation? i need to automate page up and page down function in key board. What is the best way to do it?

EDIT: in my application following the process. Assume end user open MS Word document with 5 pages and he presses page up and page down buttons to move within these pages. i want to automate this scenario using c#. currently i have uses UIAutomationClient.dll and UIAutomationTypes.dll. can i uses these?

like image 969
DevT Avatar asked Jan 25 '26 20:01

DevT


1 Answers

A very good way for automated sending of keystrokes of all kinds is the AutoIt automation and scripting language. Lots can be done with it, especially page up and page down sending.

I suggest writing an EXE with autoit, which connects itself to the program it will send keystrokes to.

like image 108
Mare Infinitus Avatar answered Jan 28 '26 12:01

Mare Infinitus



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!