一开始是手动录制然后毫秒级二分每一轮循环时间以减小误差,因为一直循环误差累计会越来越大,不是提前撞就是掉头慢了,后来搞了半天发现250毫秒刚好一格,也就是1秒四格,于是调成70ms点击加180ms延迟刚好走一格于是调用连点器全自动218分达成!!!
BGM-備忘録-鎖那
按键精灵2.0代码,最好只开原神和按键精灵其他全关,电脑开高性能模式
LeftClick 1
Delay 5210
For 3 : KeyPress "W", 1 : Delay 180 : Next
For 5 : KeyPress "D", 1 : Delay 180 : Next
For 7 : KeyPress "S", 1 : Delay 180 : Next
For 9 : KeyPress "A", 1 : Delay 180 : Next
For 4 : KeyPress "S", 1 : Delay 180 : Next
For 3 : KeyPress "A", 1 : Delay 180 : Next
//到左下角顶点,开始循环两个哈密顿回路
For i = 1 To 218
For 6 //先两格螺旋上升
KeyPress "W", 1 : Delay 180
KeyPress "D", 1 : Delay 180
KeyPress "W", 1 : Delay 180
KeyPress "A", 1 : Delay 180
Next
KeyPress "W", 1 : Delay 180
If (i And 1) = 1 Then//一个经过(1,1),一个经过(2,2)
KeyPress "D", 1 : Delay 180
KeyPress "W", 1 : Delay 180
Else
KeyPress "W", 1 : Delay 180
KeyPress "D", 1 : Delay 180
End If
For 13
KeyPress "D", 1 : Delay 180
Next//到右上角顶点
For 14
KeyPress "S", 1 : Delay 180
Next//到右下角顶点
For 6//循环到左下角
KeyPress "A", 1 : Delay 180
For 13
KeyPress "W", 1 : Delay 180
Next
KeyPress "A", 1 : Delay 180
For 13
KeyPress "S", 1 : Delay 180
Next
Next
KeyPress "A", 1 : Delay 180
KeyPress "A", 1 : Delay 180//到达左下角顶点
Next