按键精灵9如何让两个子程序都运行,最好别用多线程,如果是多线程请指导操作
RemBkey=WaitKeyIfkey=66ThenKeyDown"Shift",1Delay10KeyDown"a",1Delay100KeyPress74,1Del...
Rem B
key = WaitKey
If key = 66 Then
KeyDown "Shift", 1
Delay 10
KeyDown "a", 1
Delay 100
KeyPress 74, 1
Delay 10
KeyUp "Shift", 1
Delay 10
KeyUp "a", 1
Delay 10
Goto B
Else
Delay 10
Goto B
End If
Rem n
key = WaitKey
If key = 78 Then
KeyDown "Shift", 1
Delay 10
KeyDown "D", 1
Delay 100
KeyPress 74, 1
Delay 10
KeyUp "Shift", 1
Delay 10
KeyUp "D", 1
Delay 10
Goto n
Else
Delay 10
Goto n
End If 展开
key = WaitKey
If key = 66 Then
KeyDown "Shift", 1
Delay 10
KeyDown "a", 1
Delay 100
KeyPress 74, 1
Delay 10
KeyUp "Shift", 1
Delay 10
KeyUp "a", 1
Delay 10
Goto B
Else
Delay 10
Goto B
End If
Rem n
key = WaitKey
If key = 78 Then
KeyDown "Shift", 1
Delay 10
KeyDown "D", 1
Delay 100
KeyPress 74, 1
Delay 10
KeyUp "Shift", 1
Delay 10
KeyUp "D", 1
Delay 10
Goto n
Else
Delay 10
Goto n
End If 展开
展开全部
Rem B
key = WaitKey()
If key = 66 Then
KeyDown "Shift", 1
Delay 10
KeyDown "a", 1
Delay 100
KeyPress 74, 1
Delay 10
KeyUp "Shift", 1
Delay 10
KeyUp "a", 1
Delay 10
ElseIf key = 78 Then
Delay 10
KeyDown "Shift", 1
Delay 10
KeyDown "D", 1
Delay 100
KeyPress 74, 1
Delay 10
KeyUp "Shift", 1
Delay 10
KeyUp "D", 1
Delay 10
Else
End If
goto B
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询