YariControl.RealCursorPosition
1.0.2.2
dotnet add package YariControl.RealCursorPosition --version 1.0.2.2
NuGet\Install-Package YariControl.RealCursorPosition -Version 1.0.2.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="YariControl.RealCursorPosition" Version="1.0.2.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add YariControl.RealCursorPosition --version 1.0.2.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: YariControl.RealCursorPosition, 1.0.2.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 YariControl.RealCursorPosition as a Cake Addin #addin nuget:?package=YariControl.RealCursorPosition&version=1.0.2.2 // Install YariControl.RealCursorPosition as a Cake Tool #tool nuget:?package=YariControl.RealCursorPosition&version=1.0.2.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
YariControl.RealCursorPosition
Get the color / position from the screen with different zoom of the Font. You can take real screen Font zoom or DPI.
Preview how it works
Font Zoom 100:
Font Zoom 125:
Font Zoom 150:
Video: https://youtu.be/Q4IPKKButEA
How it use
Example use:
using YariControl.RealCursorPosition;
private Point point;
private void timer1_Tick(object sender, EventArgs e)
{
point = DisplayScreenTools.GetRoundedRealPoint(Cursor.Position);
label1.Text = "Position: " + point.ToString();//print real position
label2.Text = "Font Zoom: " + DisplayScreenTools.GetFontZoom + "%";//print Font Zoom percent
label3.Text = "Screen DPI: " + DisplayScreenTools.GetScreenDpi;//print screen dpi
panel1.BackColor = ScreenPixelColor.GetPixelColor(point);//pixel color from real cursor position
pictureBox1.Image = Screenshot.TakeCenterSnapshot(point, pictureBox1.Size);//Get center screen shot
}
NuGet package
PM> Install-Package YariControl.RealCursorPosition -Version 1.0.2.1
Created on .NET.Framework 3.0
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net30 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has 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.