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
MediaPortal 1
Support
Input / Output interfaces
Remotes
Vista MCE Remote Control VRC-1100
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="DragonQ" data-source="post: 1086484" data-attributes="member: 115209"><p>I use AutoHotkey for that. I define the green Start button on the remote such that it starts/restores MediaPortal if it's closed/minimised, and acts as normal if MediaPortal has focus. This will fail though if MediaPortal is closed but the process is still running (happens sometimes, guess it's a bug). Because of this, I use a batch file in combination with AutoHotkey to ensure any MediaPortal process is exited before starting a new instance. This is the AutoHotkey script I use:</p><p></p><p>[code]#!+Enter::</p><p>IfWinNotExist, MediaPortal</p><p>Run C:\HTPC Stuff\KILL and START MediaPortal.bat</p><p>Else</p><p>{</p><p>IfWinNotActive</p><p>WinActivate</p><p>Else</p><p>Send {h}</p><p>Return</p><p>}[/code]</p><p></p><p>This is the batch file it's pointing to:</p><p></p><p>[code]@echo off</p><p>TASKKILL /F /IM "MediaPortal.exe" > NUL</p><p>ping 0.0.0.0 -n 1 -w 300 > NUL</p><p>START "" "C:\Program Files (x86)\Team MediaPortal\MediaPortal\MediaPortal.exe"[/code]</p><p></p><p>It's probably possible to do it using EventGhost too, might look into that at some point since I use EventGhost for other things anyway.</p></blockquote><p></p>
[QUOTE="DragonQ, post: 1086484, member: 115209"] I use AutoHotkey for that. I define the green Start button on the remote such that it starts/restores MediaPortal if it's closed/minimised, and acts as normal if MediaPortal has focus. This will fail though if MediaPortal is closed but the process is still running (happens sometimes, guess it's a bug). Because of this, I use a batch file in combination with AutoHotkey to ensure any MediaPortal process is exited before starting a new instance. This is the AutoHotkey script I use: [code]#!+Enter:: IfWinNotExist, MediaPortal Run C:\HTPC Stuff\KILL and START MediaPortal.bat Else { IfWinNotActive WinActivate Else Send {h} Return }[/code] This is the batch file it's pointing to: [code]@echo off TASKKILL /F /IM "MediaPortal.exe" > NUL ping 0.0.0.0 -n 1 -w 300 > NUL START "" "C:\Program Files (x86)\Team MediaPortal\MediaPortal\MediaPortal.exe"[/code] It's probably possible to do it using EventGhost too, might look into that at some point since I use EventGhost for other things anyway. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Input / Output interfaces
Remotes
Vista MCE Remote Control VRC-1100
Contact us
RSS
Top
Bottom