获取鼠标点所在窗口的坐标或相对屏幕的坐标,然后你就可以做自己想做的了 using System;using System.Collections.Generic;using System.Text;namespace MouseEvent{
class Program
{
[System.Runtime.InteropServices.DllImport("user32.dll")]
private static extern int mouse_event(int dwFlags, int dx, int dy, int cButtons, int dwExtraInfo...