To thwart that, I built an event into the plugin if the service is not running or the pipe isn't available..
Copy this macro into your EG configuration and use the python file attached instead of the one found in your MCEIR_VISTA plugins folder.
Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1640">
<Macro Name="Restart MCE IR">
<Event Name="MCE_Vista.Pipe Not Available" />
<Event Name="MCE_Vista.IR Service Not Running" />
<Action>
System.Execute(u'net', u'stop AlternateMceIrService', 3, True, 2, u'', False, False)
</Action>
<Action>
System.Execute(u'net', u'start AlternateMceIrService', 3, False, 2, u'', False, False)
</Action>
</Macro>
</EventGhost>