Get source code from here

UIDeskAutomation is a software that can be used for creating automated tasks for Windows applications based on their user interface. This tool is free to use and free to redistribute.

Requirements: Windows Vista or later, .NET Framework 4.0 or later, PowerShell 3.0 or later.

Here you can download a C# sample project that can be used to automate Wordpad application.

What does it do?