ddeltasolutions / UIDeskAutomation

This is a .NET library that can be used to automate Windows desktop programs based on their user interface. It is created on top of managed Microsoft UI Automation API.
2 stars 1 forks source link

UIDeskAutomation

This is a .NET library that can be used to automate Windows desktop programs based on their user interface. It is created on top of managed Microsoft UI Automation API.

Here is an example. You can start an application like this:

using UIDeskAutomationLib;
...
var engine = new Engine();
engine.StartProcess("notepad.exe");

After starting the application, you can set text to Notepad like this:

UIDA_Window notepadWindow = engine.GetTopLevel("Untitled - Notepad");
UIDA_Document document = notepadWindow.Document();
document.SetText("Some text");

You can find more information about this library HERE.
Install the library from Nuget.