//重置检测上次按键
Key=GetLastKey()
Do
//获取按键
Key = GetLastKey()
//判断按键为Q
If Key = 81 Then
//按↑一次
KeyPress "Up", 1
//等待0.01秒
Delay 10
//按↓一次
KeyPress "Down", 1
//等待0.01秒
Delay 10
//按←一次
KeyPress "Left", 1
//等待0.01秒
Delay 10
KeyPress "Right", 1
//等待0.01秒
Delay 10
End If
Loop
Key=GetLastKey()
Do
//获取按键
Key = GetLastKey()
//判断按键为Q
If Key = 81 Then
//按↑一次
KeyPress "Up", 1
//等待0.01秒
Delay 10
//按↓一次
KeyPress "Down", 1
//等待0.01秒
Delay 10
//按←一次
KeyPress "Left", 1
//等待0.01秒
Delay 10
KeyPress "Right", 1
//等待0.01秒
Delay 10
End If
Loop