按键精灵按照顺序点击怎么写
发布网友
发布时间:2022-04-24 16:51
我来回答
共1个回答
热心网友
时间:2023-10-23 20:29
使用MoveR鼠标相对移动,简单写了下,只需要调用子程序,复制子程序。修改第一个MoveTo的Y坐标就可以了。
Call 第一行()
Call 第二行()
Call 第三行()
//..以此类推
Sub 第一行()
MoveTo 10, 10//A的坐标
LeftClick 1
SaveMousePos
MoveTo 10, 100
LeftClick 1
RestoreMousePos
For 9
MoveR 10, 0
LeftClick 1
SaveMousePos
MoveTo 10, 100
LeftClick 1
RestoreMousePos
Next
End Sub
Sub 第二行()
MoveTo 10, 20//K的坐标
LeftClick 1
SaveMousePos
MoveTo 10, 100
LeftClick 1
RestoreMousePos
For 9
MoveR 10, 0
LeftClick 1
SaveMousePos
MoveTo 10, 100
LeftClick 1
RestoreMousePos
Next
End Sub
Sub 第三行()
MoveTo 10, 30
LeftClick 1
SaveMousePos
MoveTo 10, 100
LeftClick 1
RestoreMousePos
For 9
MoveR 10, 0
LeftClick 1
SaveMousePos
MoveTo 10, 100
LeftClick 1
RestoreMousePos
Next
End Sub
//..以此类推