Pistitium.Mouser
1.0.2
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Pistitium.Mouser --version 1.0.2
NuGet\Install-Package Pistitium.Mouser -Version 1.0.2
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="Pistitium.Mouser" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Pistitium.Mouser --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Pistitium.Mouser, 1.0.2"
#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 Pistitium.Mouser as a Cake Addin #addin nuget:?package=Pistitium.Mouser&version=1.0.2 // Install Pistitium.Mouser as a Cake Tool #tool nuget:?package=Pistitium.Mouser&version=1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Pistitium.Mouser
Pistitium.Mouser Allows to:
Start MouseEventMonitor:
- Randomly changes the mouse position at a default or given interval
- Randomly perform a Left Button Click at a default or given interval
- While running will keep the computer awake
- Will detect mouse move by user and immediately Stop.
Stop MouseEventMonitor:
- Mouse control returns to normal
- Computer is free to go into Sleep Mode
MouseEventMonitor:
Automatically detect monitor resolution (it is recommended to minimize open windows in the main monitor)
Constructors:
Default
- public MouseEventMonitor()
- Will change mouse position randomly every 15 seconds
- Will perform a Left Button Click every 55 seconds
- public MouseEventMonitor()
public MouseEventMonitor(TimeSpan mouseMoveInterval, TimeSpan leftButtonClickInterval)
- Will change mouse position every mouseMoveInterval
- Will perform a Left Button Click every leftButtonClickInterval
Installation
Install via Visual Studio Manage Nuget Packages... or download:
https://www.nuget.org/packages/Pistitium.Mouser
.NET CLI
> dotnet add package Pistitium.Mouser --version 1.0.X
Usage
///////////////////////////////////////////////////////////
// Sample of how to use Mouser
///////////////////////////////////////////////////////////
using Pistitium.Win32Library;
private MouseEventMonitor mouseEventMonitor;
public void MouserTest()
{
// Using Default Constructor
mouseEventMonitor = new MouseEventMonitor();
// Using Custom Constructor
mouseEventMonitor = new MouseEventMonitor(new TimeSpan(0, 0, 20), new TimeSpan(0, 1, 10));
MouseEventMonitor.BroadcastMouseMove += new MouseEventMonitor.MouseMoveNotification(OnMouseMoveNotification);
MouseEventMonitor.BroadcastMouseMoveByUser += new MouseEventMonitor.MouseMoveByUserNotification(OnMouseMoveByUserNotification);
MouseEventMonitor.BroadcastLeftButtonClick += new MouseEventMonitor.MouseLeftButtonClickNotification(OnMouseLeftButtonClickNotification);
}
License
Product | Versions 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.