UIAutomationLib on GitHub

I created a new repository on GitHub called BitCollectors.UIAutomationLib which contains an XML driven .NET library for automating keystrokes and mouse clicks on just about any UI.  I’ve used this on several applications, including apps running through Terminal Services and Citrix.  It’s quite powerful, but I’m not claiming it’s the best solution for native Win32 apps (although it might be the easiest to use).  If you’re interfacing with a native Win32 app and you don’t mind writing a little code, you might want to look in to using Microsoft’s UI Automation framework.  Their framework lets you get a handle on a control and populate a text box or simulate a button press directly on the control.  My library simulates key strokes and mouse clicks, so it doesn’t really work at the control level.

Implementing the library in your code is extremely easy.  All you need to do is reference BitCollectors.UIAutomationLib.dll and add the following code to your project (this example includes a macro, which is optional):

You can either pass in a path to an XML file or a string containing the XML itself.  The XML that is used to automate the input looks something like this:

Anyone interested in contributing to this project, please drop me a line.

For more information check out the README file.

Or grab the code from the repository at: https://github.com/aplocher/BitCollectors.UIAutomationLib

One thought on “UIAutomationLib on GitHub”

Leave a Reply