using System;
using System.Runtime.InteropServices;

namespace ttt
{
    class MainClass
    {

        [DllImport("user32")]
        static extern bool SetCursorPos(int X, int Y);

        public static void Main (string[] args)
        {
            SetCursorPos(00);  // 編譯執行後,會自動把滑鼠移到左上角 x = 0 , y = 0 的位置
        }
    }
}

 

 

 

arrow
arrow
    全站熱搜

    黃彥霖 發表在 痞客邦 留言(1) 人氣()