http://www.quickmacros.com/forum/showthr...rocessesEx
Function RestartProcessNotepad
You'll have to figure out what your process name is for the program. Use Task Manager for that.
Function CreateScheduledTaskNotepad
Above uses QM to create the task in Windows Task Scheduler.
Function RestartProcessNotepad
str ProcessName="notepad"
run F"{ProcessName}.exe"
int pid=ProcessNameToId(ProcessName)
if pid
,2
,ShutDownProcess pid 1 ;; or clo "process window"
,rep() 0.1; if(!ProcessNameToId("ProcessName")) break ;;waits
,mes "CLOSED, Click OK to relaunch"
,run F"{ProcessName}.exe"
You'll have to figure out what your process name is for the program. Use Task Manager for that.
Function CreateScheduledTaskNotepad
Above uses QM to create the task in Windows Task Scheduler.