关于移动鼠标的问题
Private Declare Function SetCursorPos Lib "user32" (ByVal x As Long, ByVal y As Long) As Long SetCursorPos (Screen.Width / 2), (Screen.Height / 2) '移动鼠标位置
这个代码我本意是想要将鼠标移动到屏幕正中央,可是最后的结果却是鼠标移动到了屏幕最右下角,而非中央。请问各位前辈,这是为什么呢?如何修改呢?
Private Declare Function SetCursorPos Lib "user32" (ByVal x As Long, ByVal y As Long) As Long SetCursorPos (Screen.Width / 2), (Screen.Height / 2) '移动鼠标位置
SetCursorPos ScaleX((Screen.Width / 2), 1, 3), ScaleY((Screen.Height / 2), 1, 3)
[此贴子已经被作者于2016-5-21 21:29编辑过]