My recording service crashed the other day, no idea why, possibly a problem with the tuner. Anyway, I thought I'd take a look at Liteswap's startgbpvr to see how he monitored and controlled gbpvr. This lead me to Autoit and after hacking around Liteswaps code, I turned it into a program that checks every 60secs to see if the recording service is running. If it isn't it starts it and writes a message to my log file.
This is my first ever autoit script and there is no way I would have figured out what I was doing without using startgbvr as a basis, so thanks Liteswap.
I haven't included an .exe as I doubt anyone else writes to r:\temp\syslog.txt. If anyone else is interested, I could to a version that writes to a more common log or no log at all.
Changes:
2.8 Check to see if gbpvr has failed to start correctly.
If gbpvr is running but there is not window to activate then gbpvr must have barfed, probably due to the error
'Your system does not support the required VMR9 video renderer'
In this instance, gbpvr is killed and restarted.
2.9 Added writetolog funtion to tidy up code
Write message to log indicating what power mode the PC is entering/resuming from.
[update] August 2008
2.91 Don't kill gbpvr processes (with no active window) if file $EPGUpdate exists
So in your EPG update script, get it to create the file defined by $EPGUpdate before updating the EPG
and remove it once EPG update is complete.
[update] Oct 2009
$Delay_before_checking_IR_running = 3000
I am currently running with this setting at 3000 rather than 8000 in the script. This makes the script quicker at detecting ir.exe failure whilst still giving it process a chane to start up correctly
This is my first ever autoit script and there is no way I would have figured out what I was doing without using startgbvr as a basis, so thanks Liteswap.
I haven't included an .exe as I doubt anyone else writes to r:\temp\syslog.txt. If anyone else is interested, I could to a version that writes to a more common log or no log at all.
Changes:
2.8 Check to see if gbpvr has failed to start correctly.
If gbpvr is running but there is not window to activate then gbpvr must have barfed, probably due to the error
'Your system does not support the required VMR9 video renderer'
In this instance, gbpvr is killed and restarted.
2.9 Added writetolog funtion to tidy up code
Write message to log indicating what power mode the PC is entering/resuming from.
[update] August 2008
2.91 Don't kill gbpvr processes (with no active window) if file $EPGUpdate exists
So in your EPG update script, get it to create the file defined by $EPGUpdate before updating the EPG
and remove it once EPG update is complete.
[update] Oct 2009
$Delay_before_checking_IR_running = 3000
I am currently running with this setting at 3000 rather than 8000 in the script. This makes the script quicker at detecting ir.exe failure whilst still giving it process a chane to start up correctly
âIf this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.â