Sage.WindowsMouse 1.0.0

dotnet add package Sage.WindowsMouse --version 1.0.0
                    
NuGet\Install-Package Sage.WindowsMouse -Version 1.0.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="Sage.WindowsMouse" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Sage.WindowsMouse" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Sage.WindowsMouse" />
                    
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 Sage.WindowsMouse --version 1.0.0
                    
#r "nuget: Sage.WindowsMouse, 1.0.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.
#:package Sage.WindowsMouse@1.0.0
                    
#: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=Sage.WindowsMouse&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Sage.WindowsMouse&version=1.0.0
                    
Install as a Cake Tool

Sage.WindowsMouse

简介

Sage.WindowsMouse 提供了 Windows 鼠标设置的管理功能。

主要特性

  • 鼠标速度设置和获取
  • 鼠标双击时间设置和获取
  • 其他鼠标相关设置
  • 完全兼容 AOT 编译

使用示例

using Sage.WindowsMouse;
using Sage.WindowsMouse.Models;

// 获取当前鼠标速度
int currentSpeed = MouseSettingsService.GetMouseSpeed
();
Console.WriteLine($"当前鼠标速度:{currentSpeed}");

// 设置鼠标速度
MouseSettingsService.SetMouseSpeed(10); // 设置为中等速度

// 获取当前鼠标双击时间
int doubleClickTime = MouseSettingsService.
GetDoubleClickTime();
Console.WriteLine($"当前双击时间:{doubleClickTime}毫秒
");

// 设置鼠标双击时间
MouseSettingsService.SetDoubleClickTime(500); // 设置为
500毫秒

// 使用MouseSettings类设置多个属性
var settings = new MouseSettings
{
    Speed = 12,
    DoubleClickTime = 400
};

MouseSettingsService.ApplySettings(settings)

许可证

版权所有 © 2025 甲壳虫科技 团队。

贡献

欢迎提交问题和功能请求。 QQ Group: 1054304346

作者

甲壳虫科技

Product Compatible and additional computed target framework versions.
.NET net9.0-windows7.0 is compatible.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net9.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.0.0 117 7/16/2025