按键精灵如何用多线程同时按1,2,3,4,5这5个键?
展开全部
BeginThread 程序1
BeginThread 程序2
BeginThread 程序3
BeginThread 程序4
BeginThread 程序5
Sub 程序1
Rem a
KeyPress "1", 1
Goto a
End Sub
Sub 程序2
Rem a
KeyPress "2", 1
Goto a
End Sub
Sub 程序3
Rem a
KeyPress "3", 1
Goto a
End Sub
Sub 程序4
Rem a
KeyPress "4", 1
Goto a
End Sub
Sub 程序5
Rem a
KeyPress "5", 1
Goto a
End Sub
BeginThread 程序2
BeginThread 程序3
BeginThread 程序4
BeginThread 程序5
Sub 程序1
Rem a
KeyPress "1", 1
Goto a
End Sub
Sub 程序2
Rem a
KeyPress "2", 1
Goto a
End Sub
Sub 程序3
Rem a
KeyPress "3", 1
Goto a
End Sub
Sub 程序4
Rem a
KeyPress "4", 1
Goto a
End Sub
Sub 程序5
Rem a
KeyPress "5", 1
Goto a
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
BeginThread a
BeginThread b
BeginThread c
BeginThread d
Sub a()
Do
KeyPress "Num 1", 1
Delay 1000
Loop
End Sub
Sub b()
Do
KeyPress "Num 2", 1
Delay 1000
Loop
End Sub
Sub c()
Do
KeyPress "Num 3", 1
Delay 1000
Loop
End Sub
Sub d()
Do
KeyPress "Num 4", 1
Delay 1000
Loop
End Sub
BeginThread b
BeginThread c
BeginThread d
Sub a()
Do
KeyPress "Num 1", 1
Delay 1000
Loop
End Sub
Sub b()
Do
KeyPress "Num 2", 1
Delay 1000
Loop
End Sub
Sub c()
Do
KeyPress "Num 3", 1
Delay 1000
Loop
End Sub
Sub d()
Do
KeyPress "Num 4", 1
Delay 1000
Loop
End Sub
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |