Automation.NET
0.1.1
dotnet add package Automation.NET --version 0.1.1
NuGet\Install-Package Automation.NET -Version 0.1.1
<PackageReference Include="Automation.NET" Version="0.1.1" />
<PackageVersion Include="Automation.NET" Version="0.1.1" />
<PackageReference Include="Automation.NET" />
paket add Automation.NET --version 0.1.1
#r "nuget: Automation.NET, 0.1.1"
#:package Automation.NET@0.1.1
#addin nuget:?package=Automation.NET&version=0.1.1
#tool nuget:?package=Automation.NET&version=0.1.1
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 | Versions 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. |
-
net10.0
- Interop.UIAutomationClient (>= 10.19041.0)
- SharpHook (>= 8.0.3)
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 |