[DllImport(\"User32.dll\")]
private static extern bool SetCursorPos(int x, int y); 方法:
private void SetPos() {
设置X,Y的值
int dx = this.Left + this.Width / 2; int dy = this.Top + this.Height / 2; }
调用系统的方法,实现定位鼠标位置 SetCursorPos(dx, dy);
因篇幅问题不能全部显示,请点此查看更多更全内容
Copyright © 2019- yrrf.cn 版权所有 赣ICP备2024042794号-2
违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务