- Notifications
You must be signed in to change notification settings - Fork26
A library used to control your mouse and keyboard programmatically in .NET Core
License
NotificationsYou must be signed in to change notification settings
lucassklp/Desktop.Robot
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This library helps you to automate tasks by simulating inputs (mouse and keyboards) programmatically, inspired injava.awt.Robot
I made this library because the dotnet SDK doesn't support simulation of mouse and keyboard input. The only way of input simulation in the standard framework is by using Windows.Forms which won't run on Linux or OSX.
If you are using Package Manager:
Install-Package Desktop.Robot -Version 1.5.0
If you are using .NET CLI
dotnet add package Desktop.Robot --version 1.5.0
- Multiplatform: works on Windows, Linux and OSX
- Built using the Operating System Native and .NET API, other dependencies needed
- Easy to use
usingDesktop.Robot;usingDesktop.Robot.Extensions;namespaceExample{classProgram{staticvoidMain(string[]args){varrobot=newRobot();robot.AutoDelay=1000;robot.MouseMove(100,100);robot.Click();robot.Type("A invisible cat is using my PC");}}}
In order to use the method CreateScreenCapture you will need to install some libraries. This is required by System.Drawing's components
sudo apt install libgdiplus
- As we are currently developing this tool, multiple monitors are not supported for now.
- The library is under development, and some methods will throw a NotImplementedException
About
A library used to control your mouse and keyboard programmatically in .NET Core