110,538
社区成员
发帖
与我相关
我的任务
分享
private readonly int mouseeventf_leftdown = 0x2;
private readonly int mouseeventf_leftup = 0x4;
[dllimport("user32")]
public static extern void mouse_event(int dwflags, int dx, int dy, int dwdata, int dwextrainfo);
mouse_event(mouseeventf_leftdown, x * 65536 / 1024, y * 65536 / 768, 0, 0);
mouse_event(mouseeventf_leftup, x * 65536 / 1024, y * 65536 / 768, 0, 0);