按键精灵运行不了,提示脚本已停止执行

2024-11-17 00:37:42
推荐回答(1个)
回答1:

while true
key = WaitKey()
If key=49 Then
MoveTo 425,475
LeftClick 1
MoveTo 900,422
LeftClick 1
MoveTo 425,560
LeftClick 1
MoveTo 900,686
LeftClick 1
End If
If key=50 Then
MoveTo 588,475
LeftClick 1
MoveTo 900,422
LeftClick 1
MoveTo 588,560
LeftClick 1
MoveTo 900,686
LeftClick 1
End If
If key=51 Then
MoveTo 750,475
LeftClick 1
MoveTo 900,422
LeftClick 1
MoveTo 750,560
LeftClick 1
MoveTo 900,686
LeftClick 1
End If
If key=52 Then
MoveTo 750, 308
LeftClick 1
MoveTo 900,422
LeftClick 1
MoveTo 750,390
LeftClick 1
MoveTo 900,686
LeftClick 1
End If
If key=53 Then
MoveTo 750,647
LeftClick 1
MoveTo 900,422
LeftClick 1
MoveTo 750,730
LeftClick 1
MoveTo 900,686
LeftClick 1
End If
If key=96 Then
Delay 4500
MoveTo 524, 245
LeftClick 1
MoveTo 338, 420
LeftClick 1
MoveTo 475, 245
LeftClick 1
MoveTo 338, 390
LeftClick 1
End If
delay 100
wend

说明:估计这样就能用了