home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
HTPC Projects
HTPC Projects
Remote is dead after stand by/hibernate
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="sbp" data-source="post: 123354" data-attributes="member: 23951"><p>Hi Skoov</p><p></p><p>Thank you for the script. I have a similar problem as you have, often the remote does not work after resuming. I'm using the reomte that came with my PVR150 Hauppauge card, which is natively supported by MP, therefore there is no IR driver to kill and restart.</p><p>My problem is solved if I kill MP and restart it, therefore I wanted to change your script to do that. But I have a little problem - I can get it to kill MP after resuming, but I get an error when trying to start MP (I think it has something to do with the path to the mediaportal.exe)</p><p></p><p>Could you please advice me - how to set this up?</p><p></p><p>Thank you </p><p>Steen</p><p></p><p>restartMP.vbs=</p><p>MY script:</p><p> Set colMonitoredEvents = GetObject("winmgmts:").ExecNotificationQuery("Select * from Win32_PowerManagementEvent") </p><p>Set WshShell = WScript.CreateObject("WScript.Shell")</p><p>Do</p><p> Set strLatestEvent = colMonitoredEvents.NextEvent</p><p> Select Case strLatestEvent.EventType</p><p> </p><p> case 4</p><p> ' Entering Suspend. uses the XP command taskkill to end a process.</p><p></p><p> </p><p> case 7</p><p> ' Resume from Suspend. Indicates that a ResumeSuspend message has been sent, enabling the computer to return to its regular power state.</p><p> WshShell.Run "c:\windows\system32\taskkill /F /IM Mediaportal.exe", 0</p><p> WshShell.Run "C:\Progra~1\Team~1\MediaP~1\MediaPortal.exe", 0</p><p> </p><p> case 18</p><p> 'Resume Automatic. Indicates that the computer has awakened in response to an event. </p><p> WshShell.Run "c:\windows\system32\taskkill /F /IM MediaPortal.exe", 0</p><p> WshShell.Run "C:\Progra~1\Team~1\MediaP~1\MediaPortal.exe", 0</p><p> </p><p> End Select</p><p>Loop</p><p></p><p></p><p></p><p>My translation from Danish to english of the error: </p><p>Script: C\documents and settings\steen\menuen start\programmer\start\restartMP.vbs</p><p>Line: 19</p><p>Char: 3</p><p>Error: The chosen (indicated?) file was not found </p><p>Code: 80070002</p><p>Source: (Null)</p></blockquote><p></p>
[QUOTE="sbp, post: 123354, member: 23951"] Hi Skoov Thank you for the script. I have a similar problem as you have, often the remote does not work after resuming. I'm using the reomte that came with my PVR150 Hauppauge card, which is natively supported by MP, therefore there is no IR driver to kill and restart. My problem is solved if I kill MP and restart it, therefore I wanted to change your script to do that. But I have a little problem - I can get it to kill MP after resuming, but I get an error when trying to start MP (I think it has something to do with the path to the mediaportal.exe) Could you please advice me - how to set this up? Thank you Steen restartMP.vbs= MY script: Set colMonitoredEvents = GetObject("winmgmts:").ExecNotificationQuery("Select * from Win32_PowerManagementEvent") Set WshShell = WScript.CreateObject("WScript.Shell") Do Set strLatestEvent = colMonitoredEvents.NextEvent Select Case strLatestEvent.EventType case 4 ' Entering Suspend. uses the XP command taskkill to end a process. case 7 ' Resume from Suspend. Indicates that a ResumeSuspend message has been sent, enabling the computer to return to its regular power state. WshShell.Run "c:\windows\system32\taskkill /F /IM Mediaportal.exe", 0 WshShell.Run "C:\Progra~1\Team~1\MediaP~1\MediaPortal.exe", 0 case 18 'Resume Automatic. Indicates that the computer has awakened in response to an event. WshShell.Run "c:\windows\system32\taskkill /F /IM MediaPortal.exe", 0 WshShell.Run "C:\Progra~1\Team~1\MediaP~1\MediaPortal.exe", 0 End Select Loop My translation from Danish to english of the error: Script: C\documents and settings\steen\menuen start\programmer\start\restartMP.vbs Line: 19 Char: 3 Error: The chosen (indicated?) file was not found Code: 80070002 Source: (Null) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
HTPC Projects
HTPC Projects
Remote is dead after stand by/hibernate
Contact us
RSS
Top
Bottom