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
Codecs, External Players
MPC-HC full integration in MP
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="cilla" data-source="post: 589925" data-attributes="member: 73638"><p>"Escape" and "Esc" means the same in autohotkey.</p><p></p><p>If you press Escape, the following scriptblock will be executed:</p><p></p><p>[CODE]Escape::</p><p>IfWinExist, Media Player Classic Homecinema</p><p>{ </p><p> </p><p> IfWinNotExist, MediaPortal </p><p> {</p><p> Run "%A_ProgramFiles%\Team MediaPortal\MediaPortal\MediaPortal.exe"</p><p> Sleep, 1000 </p><p> }</p><p> WinActivate, MediaPortal</p><p> WinMaximize</p><p> WinClose, Media Player Classic Homecinema </p><p> ExitApp</p><p>} </p><p></p><p>IfWinExist, MediaPortal </p><p>{</p><p> Send, , Escape, "%A_ProgramFiles%\Team MediaPortal\MediaPortal\MediaPortal.exe"</p><p>}</p><p>return [/CODE]</p><p></p><p>With other words:If you press Escape MPC HC will be closed and the script returns to MP.</p><p></p><p>You can translate every key to Esc.</p><p>With "b::Esc" you will send the Escape key/command and the previously codeblock will executed.</p><p></p><p>"b" means the "stop" button on a MCE remotecontrol. So you should take a look to your imon documentation (or use "autoScriptWriter" (included in <a href="http://www.autohotkey.com/download/" target="_blank">Autohotkey</a>)) to find out the keymapping of your imon remote control.</p><p></p><p>And don't forget to compile the script after changing something <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /></p><p></p><p>lg cilla</p></blockquote><p></p>
[QUOTE="cilla, post: 589925, member: 73638"] "Escape" and "Esc" means the same in autohotkey. If you press Escape, the following scriptblock will be executed: [CODE]Escape:: IfWinExist, Media Player Classic Homecinema { IfWinNotExist, MediaPortal { Run "%A_ProgramFiles%\Team MediaPortal\MediaPortal\MediaPortal.exe" Sleep, 1000 } WinActivate, MediaPortal WinMaximize WinClose, Media Player Classic Homecinema ExitApp } IfWinExist, MediaPortal { Send, , Escape, "%A_ProgramFiles%\Team MediaPortal\MediaPortal\MediaPortal.exe" } return [/CODE] With other words:If you press Escape MPC HC will be closed and the script returns to MP. You can translate every key to Esc. With "b::Esc" you will send the Escape key/command and the previously codeblock will executed. "b" means the "stop" button on a MCE remotecontrol. So you should take a look to your imon documentation (or use "autoScriptWriter" (included in [URL="http://www.autohotkey.com/download/"]Autohotkey[/URL])) to find out the keymapping of your imon remote control. And don't forget to compile the script after changing something ;) lg cilla [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Codecs, External Players
MPC-HC full integration in MP
Contact us
RSS
Top
Bottom