Rem A
A = WaitKey()
If A = 65 Then //a的按键码是65
KeyPress "BackSpace", 1
KeyPress "A", 1
Else
End If
A = WaitKey()
If A = 65 Then //a的按键码是65
KeyPress "BackSpace", 1
KeyPress "B", 1
Else
End If
Goto A
获取上一次按键码就能实行,代码如下:
i=GetLastKey()
If i=65//a的按键码是65
KeyPress "B", 1
Else
End If