Is it possible to perform the action only after closing the application opened by exec? If so, how?
In bgt if i remember i can do it after set the first parameter in bool run to true.
Pages 1
You are not logged in. Please login or register.
AudioGames.net Forum → Developers room → HSP: How to perform action after close something opened by exec?
Is it possible to perform the action only after closing the application opened by exec? If so, how?
In bgt if i remember i can do it after set the first parameter in bool run to true.
#uselib "kernel32"
#func global CreateProcessA "CreateProcessA" sptr,sptr,sptr,sptr,sptr,sptr,sptr,sptr,sptr,sptr
#func global CloseHandle "CloseHandle" sptr
#func global WaitForSingleObject "WaitForSingleObject" sptr,sptr
#module mod_execwait
#deffunc exec_wait str _path, local _startupinfo, local _processinfo
sdim _startupinfo,100
dim _processinfo,4
wpoke _startupinfo,0,68
CreateProcessA 0,_path,0,0,0,0,0,0,varptr(_startupinfo),varptr(_processinfo)
if stat=0:return 0
CloseHandle _processinfo.1
WaitForSingleObject _processinfo.0,$FFFFFFFF
CloseHandle _processinfo.0
return 1
#global
AudioGames.net Forum → Developers room → HSP: How to perform action after close something opened by exec?
Generated in 0.014 seconds (47% PHP - 53% DB) with 9 queries