关于按键精灵鼠标点击设置问题。

2025-01-02 04:55:51
推荐回答(1个)
回答1:

给你做了一个前台的按键精灵脚本,后台的稍微麻烦一点,但解决你的问题还是绰绰有余了,源代码如下:

//以下是源码,记得采纳
UserVar location1X=0 "X点横坐标"
UserVar location1Y=0 "X点纵坐标"
UserVar location2X=0 "Y点横坐标"
UserVar location2Y=0 "Y点纵坐标"
UserVar timeSet=10000 "延迟时间设置,1000=1秒"
UserVar count=0 "循环次数,0表示无限循环"

If count = 0 Then
While 1
Call testClick
Wend
Else
For count
Call testClick
Next
End If

Sub testClick
MoveTo location1X, location1Y
LeftClick 1
Delay timeSet
LeftClick 1

Delay 100

MoveTo location2X, location2Y
LeftClick 1
Delay timeSet
LeftClick 1
Delay 100
End Sub
//以上是源码,记得采纳