我这段源码有错误码?。。为啥没有延迟直接弹出窗口。。用按键精灵编译的
UserVarVar1=30"软件运行多长时间后关机(分)"BeginThreadaBeginThreadbSubaRemstartKeyDown"B",1Delay10...
UserVar Var1=30 "软件运行多长时间后关机(分)"
BeginThread a
BeginThread b
Sub a
Rem start
KeyDown "B", 1
Delay 100
KeyUp "B", 1
Goto start
End Sub
Sub b
For Var1
Delay 60000
Next
MessageBox "哎"
End Sub
。。。。为什么一运行没有延迟直接弹出窗口“哎” 展开
BeginThread a
BeginThread b
Sub a
Rem start
KeyDown "B", 1
Delay 100
KeyUp "B", 1
Goto start
End Sub
Sub b
For Var1
Delay 60000
Next
MessageBox "哎"
End Sub
。。。。为什么一运行没有延迟直接弹出窗口“哎” 展开
2个回答
展开全部
//你的错误就在多线程下没加环境变量,导致线程B无法识别Var1数组
UserVar Var1=30 "软件运行多长时间后关机(分)"
DimEnv va
va=var1
BeginThread a
BeginThread b
Sub a
Rem start
KeyDown "B", 1
Delay 100
KeyUp "B", 1
Goto start
End Sub
Sub b
For Va
Delay 60000
Next
MessageBox "哎"
End Sub
UserVar Var1=30 "软件运行多长时间后关机(分)"
DimEnv va
va=var1
BeginThread a
BeginThread b
Sub a
Rem start
KeyDown "B", 1
Delay 100
KeyUp "B", 1
Goto start
End Sub
Sub b
For Va
Delay 60000
Next
MessageBox "哎"
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询