按键精灵运行不了,提示脚本已停止执行
我之前按网上教程做了一个脚本来玩植物大战僵尸,并且运行了很多次都良好无问题,但是今天使用的时候,不能用了,启动以后,一下子就自停止了,调试的时候,也是这样,提示“脚本已停...
我之前按网上教程做了一个脚本来玩植物大战僵尸,并且运行了很多次都良好无问题,但是今天使用的时候,不能用了,启动以后,一下子就自停止了,调试的时候,也是这样,提示“脚本已停止执行”。我用的是按键精灵8版本,脚本源文件如下:
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
请求高人指点。 展开
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
请求高人指点。 展开
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
说明:估计这样就能用了
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
说明:估计这样就能用了
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询