Automation.NET 0.1.1

dotnet add package Automation.NET --version 0.1.1
                    
NuGet\Install-Package Automation.NET -Version 0.1.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Automation.NET" Version="0.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Automation.NET" Version="0.1.1" />
                    
Directory.Packages.props
<PackageReference Include="Automation.NET" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Automation.NET --version 0.1.1
                    
#r "nuget: Automation.NET, 0.1.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Automation.NET@0.1.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Automation.NET&version=0.1.1
                    
Install as a Cake Addin
#tool nuget:?package=Automation.NET&version=0.1.1
                    
Install as a Cake Tool

Automation.NET

Record and replay desktop mouse and keyboard input on Windows, Linux, and macOS.

Usage example

With the .NET 10 SDK, open a terminal in the directory containing the Automation.NET checkout and create a console app that references it.

dotnet new console --name AutomationDemo --framework net10.0
cd AutomationDemo
dotnet add reference ../Automation.NET/Automation.NET.csproj

Replace Program.cs with the following code and run dotnet run from an interactive desktop session. Click into the app you want to automate, perform a few actions, and press F12 to finish recording. Before replay, return the target app to its starting state. You have three seconds after pressing Enter to switch back to it. Press F12 again to stop replay early.

using Automation.NET;

var automation = new GuiAutomation();
const string recordingPath = "recording.json";

Console.WriteLine("Perform the actions you want to record, then press F12.");
GuiRecording recording = await automation.RecordAsync(promptUserIfDisabled: true);
recording.Save(recordingPath);

Console.WriteLine("Reset the target app, then press Enter to replay in three seconds.");
Console.ReadLine();

try
{
    await automation.ReplayAsync(GuiRecording.Load(recordingPath),
        preparationTime: TimeSpan.FromSeconds(3), promptUserIfDisabled: true);
}
catch (OperationCanceledException)
{
    Console.WriteLine("Replay stopped.");
}
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.1 53 12/3/2026