使用按键精灵玩棒球忍者
While 1
press_key = WaitKey()
TracePrint "按下的键是:" + CStr(press_key)
//s 83 A
//a 65 B
//w 87 C
//q 81 D
//left 37
// down 40
// up 38
// right 39
If press_key = 56 or press_key=85 Then
KeyDown "D", 1
Delay 30
KeyUp "D", 1
Delay 30
KeyDown "D", 1
Delay 30
KeyUp "D", 1
//KeyPress "D", 2
Delay 30
KeyDown "A", 1
//Delay 30
Delay 30
//KeyPress "K", 1
KeyDown "K", 1
Delay 30
KeyUp "K",1
KeyUp "A", 1
ElseIf press_key = 57 or press_key=73 Then
KeyDown "A", 1
Delay 30
KeyUp "A", 1
Delay 30
KeyDown "A", 1
Delay 30
KeyUp "A", 1
KeyDown "D", 1
Delay 30
//KeyPress "K",1
KeyDown "K", 1
Delay 30
KeyUp "K",1
KeyUp "D", 1
ElseIf press_key = 51 Then
KeyDown "J", 1
Delay 30
KeyPress "K",1
KeyUp "J",1
ElseIf press_key = 48 Then
KeyDown "A", 1
Delay 30
KeyUp "A", 1
Delay 30
KeyDown "A", 1
Delay 30
KeyUp "A", 1
Delay 30
Delay 10
End If
//End If
Delay 30
Wend
代码 其实很简单,关键是桢数,也就 delay的时间 数,10,50都不行,然后试了30可以了
但是现在有个问题就是偶尔无法放出技能 不知道为什么 了,
不知道 是出了什么 问题