zoukankan      html  css  js  c++  java
  • c# 获取全屏 中鼠标焦点的位置坐标

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Drawing;
    using System.Threading;
    
    
    namespace ConsoleApplication1
    {
        class Program
        {
            static void Main(string[] args)
            {
                ///获取桌面大小
                //Rectangle rect = System.Windows.Forms.SystemInformation.VirtualScreen; 
                //int width = rect.Width; 
                //int height = rect.Height;
                
                ///循环取点
                while (true) {
                    Point p = System.Windows.Forms.Cursor.Position;
                    Console.WriteLine(p.X + ":" + p.Y);
                    Thread.Sleep(100);
                    Console.Clear();
                }
            }
        }
    }
    


  • 相关阅读:
    外设简述
    代C语言上机实践
    css动画效果
    css滑动门原理
    css整理
    html
    html单词
    倒计时.js
    随机方块
    求字符串出现次数和最大值
  • 原文地址:https://www.cnblogs.com/pangblog/p/3325160.html
Copyright © 2011-2022 走看看