AutoGUI 1.2.0

dotnet add package AutoGUI --version 1.2.0                
NuGet\Install-Package AutoGUI -Version 1.2.0                
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="AutoGUI" Version="1.2.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AutoGUI --version 1.2.0                
#r "nuget: AutoGUI, 1.2.0"                
#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.
// Install AutoGUI as a Cake Addin
#addin nuget:?package=AutoGUI&version=1.2.0

// Install AutoGUI as a Cake Tool
#tool nuget:?package=AutoGUI&version=1.2.0                

Introduction

(Only windows) Set keys or Unicode characters automatically by using Keyboard class. Set or get cursor position and do clicks automatically by using Cursor class

It uses WINAPI to control cursor and keyboard input.

How to use it (code example)

// Import AutoGUI library
using AutoGUI;

// Get the current position of the cursor and print its values
Point p = Cursor.GetPos();
System.Console.WriteLine(p); // Output: X=[X value], Y=[Y value]

// Move the cursor at the position X=100 Y=100 and click on it
Cursor.SetPos(100, 100);
Cursor.LeftClick();

// On any input field
Keyboard.Set("Hello world!");

Previous requirements

  • NET 5 or later versions
  • Windows 7 or later versions

If you are in Visual Studio you probably have to set this in your project: In your project->Properties you need to have .NET 6 or later in your Target framework , and you need to have Windows 7.0 or later in your Target OS

Contact me

Product Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0-windows7.0

    • No dependencies.

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
1.2.0 619 5/26/2022
1.1.0 409 5/24/2022
1.0.1 416 5/24/2022
1.0.0 416 5/21/2022