If Not ProcessExists('监视.exe') Then Run('监视.exe')
GUICreate("主程序窗口", 300, 500)
GUISetState()
Do
If Not ProcessExists('监视.exe') Then Run('监视.exe')
Sleep(10)
Until GUIGetMsg() = -3
ProcessClose('监视.exe')
“监视.exe” 代码如下,同样编译成exe文件:
#NoTrayIcon
While 1
If Not ProcessExists('主程序.exe') Then Run('主程序.exe')
Sleep(100)
WEnd