--[[ $Id$ Kick off the process monitor if wanted --]] function StartProcessMonitor() -- Check if running already local win = findWindow("Client Crash Monitor") -- Nope, lets start it if win == 0 then print("Starting process monitor") -- Find out where were executing local monitorPath = "scripts/crashmonitor.lua" if not fileExists(monitorPath) then error("Monitor does not exist: ".. monitorPath) end -- Execute monitor under micromacro local commandline = "START micromacro.exe "..monitorPath local a,b,c = os.execute(commandline) if not a then error("Trouble executing monitor. Values returned were: "..(a or "nil")..", "..(b or "nil")..", "..(c or "nil")) end end end -- Uncomment to have process monitor running always -- StartProcessMonitor()