VB做键盘连发的代码,请大家进来帮我想想。谢谢了
你是想玩街机的吧
在窗体上放5按钮,窗体代码如下:
Private Sub Form load()
text1.text="abcd"
End Sub
Private Sub Command1_Click (KeyCode As Integer, Shift As Integer)
Command2_Click
Command3_Click
Command4_Click
Command5_Click
End Sub
Private Sub Command1_Click (KeyCode As Integer, Shift As Integer)
KeyCode =a的KeyCode 值
End Sub
Private Sub Command1_Click (KeyCode As Integer, Shift As Integer)
KeyCode =b的KeyCode 值
End Sub
以此类推....
试试看吧
多重随机标签