按键精灵A子程序启动B子程序停止,B子程序启动A子程序停止,C子程序启动A,B程序停止,但是编译没通过?

2024-11-14 10:16:36
推荐回答(1个)
回答1:

Rem i
do
key = WaitKey()
If key = 99 Then
StopThread 线程c
StopThread 线程b
线程a=BeginThread(a)
ElseIf key=98 Then
StopThread 线程a
StopThread 线程c
线程b=BeginThread(b)
ElseIf key=97 then
StopThread 线程a
StopThread 线程b
线程c=BeginThread(c)
End If
Delay 100
loop
Sub a
// Goto i//这个就不知所谓了
End Sub
Sub b
For 100
KeyPress "F", 1
Next
End Sub
Sub c
For 100
LeftClick 1
Next
End Sub