WM_MOUSEMOVE 是鼠标移动以后发出的
应该用
Declare Function SetCursorPos Lib "user32" (ByVal x As Long, ByVal y As Long) As Long
Dim x as Long
Dim y as Long
x = 0
y = 0
SetCursorPos x, y那只能先Call SetCursorPos(201, 201)再Call SetCursorPos(202, 202)……以此类推了。很麻烦
但,可以用按键精灵的录制功能,先录好,在把按键精灵代码中的"mousemove"替换为"Call SetCursorPos "
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)