Here is the vbs script that will start or restart MC. Please note that you will need to change the text file path to whatever you want...basically, any time it starts MC, it will write the time and date into a log file. Also, this won't work, unless the MC process in task manager is gone...so if there is a freeze in the GUI, or a crash window waiting for a click, the script will do nothing.
What it does is every 45 seconds, it looks in the running processes for 'Media Center 21', and if it doesn't find it, it launches MC21.
Dim i
Dim strComputer
Dim FindProc
Dim nIndex
Dim filesys
strComputer = "."
FindProc = "Media Center 21"
Set filesys = CreateObject("Scripting.FileSystemObject")
Do
WScript.Sleep 45000
Set filetxt = filesys.OpenTextFile("C:\Users\Administrator\Desktop\MC21 up log.txt", 8, True)
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colProcessList = objWMIService.ExecQuery _
("Select Name from Win32_Process WHERE Name LIKE '" & FindProc & "%'")
If colProcessList.count<1 then
Dim objShell
Set objShell = WScript.CreateObject( "WScript.Shell" )
objShell.Run("""C:\Program Files (x86)\J River\Media Center 21\Media Center 21.exe""")
Set objShell = Nothing
filetxt.WriteLine("MC21 restarted on " & now)
End if
filetxt.Close
Set objWMIService = Nothing
Set colProcessList = Nothing
Loop
Save this as a .vbs file.
Once I have the auto hot key script working to close the crash notification, I will post that as well...with both of these scripts running, the system should auto restart for everything but a GUI freeze...