Code: Select all
notepad$ = "C:\Windows\System32\notepad.exe"
If FileSize(notepad$) >0
Debug "Something"
\ONELOG\TERA+DEB.INI"
p=RunProgram(notepad$,"","",#PB_Program_Hide|#PB_Program_Open|#PB_Program_Read)
;p=RunProgram(notepad$,"","") ; Opens if I uncomment and comment above.
If p
While IsProgram(p)
Debug "Running"
Delay(1000)
Wend
Debug "Stopped Running"
EndIf
EndIf