This article example describes how C# can simply obtain the coordinates of the mouse focus position in full screen. Share it for your reference, as follows:
using System; using ; using ; using ; using ; using ; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { ///Get the desktop size //Rectangle rect = ; //int width = ; //int height = ; ///Cyclic point acquisition while (true) { Point p = ; ( + ":" + ); (100); (); } } } }
For more information about C#, please visit the special topic of this site:Tutorial on the usage of common C# controls》、《Summary of WinForm control usage》、《C# data structure and algorithm tutorial》、《Introduction to C# object-oriented programming tutorial"and"Summary of thread usage techniques for C# programming》
I hope this article will be helpful to everyone's C# programming.