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
MediaPortal 1 Talk
Power Off/Standby - Start batch file
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="CyberSimian" data-source="post: 1192972" data-attributes="member: 141969"><p>I have a Harmony 650. I am not a Harmony expert, but I would expect to be able to re-assign any of the Harmony buttons to perform other functions.</p><p></p><p>If you are using "Activities", the Harmony will send whatever codes are defined for POWER_ON and POWER_OFF as required. So what you need to do is modify those definitions <strong>for the HTPC device</strong>. In particular, you need to modify POWER_OFF so that it no longer sends SLEEP (which you cannot intercept), but instead sends some other MCE button code (which you can intercept).</p><p></p><p>When I used WMC, I modified a button definition in a One-for-All remote control so that it sent the PRINT command when that button was pressed (yes, the MCE command set really does support PRINT!). The other change was to modify the "Report Mapping Table" in the Registry to translate PRINT to ALT_F4, so that I had a button to exit immediately from WMC.</p><p></p><p>In your case, the following might work:</p><p>(1) Modify your Harmony to send the MCE PRINT command for POWER_OFF for the HTPC device.</p><p>(2) Modify the "Report Mapping Table" (in the Registry) to map PRINT to an obscure key combination of your choice (ALT_F5 perhaps, but not ALT_F4).</p><p>(3) Use a tool to intercept that key combination and invoke your batch file. AutoHotKey could do this (which I have used), and EventGhost probably could too (which I have not used). However, I have a recollection that Windows 7 and later has some way of allowing users to define their own keyboard shortcuts. If you can find it, you could define ALT_F5 as invoking your batch file (so dispensing with AutoHotKey or EventGhost).</p><p></p><p>I find it really strange that such a simple requirement seems to be so difficult to accomplish. It suggests that there is a simple and elegant way of doing this, but which none of us have yet spotted. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" /></p><p></p><p>-- from CyberSimian in the UK</p></blockquote><p></p>
[QUOTE="CyberSimian, post: 1192972, member: 141969"] I have a Harmony 650. I am not a Harmony expert, but I would expect to be able to re-assign any of the Harmony buttons to perform other functions. If you are using "Activities", the Harmony will send whatever codes are defined for POWER_ON and POWER_OFF as required. So what you need to do is modify those definitions [B]for the HTPC device[/B]. In particular, you need to modify POWER_OFF so that it no longer sends SLEEP (which you cannot intercept), but instead sends some other MCE button code (which you can intercept). When I used WMC, I modified a button definition in a One-for-All remote control so that it sent the PRINT command when that button was pressed (yes, the MCE command set really does support PRINT!). The other change was to modify the "Report Mapping Table" in the Registry to translate PRINT to ALT_F4, so that I had a button to exit immediately from WMC. In your case, the following might work: (1) Modify your Harmony to send the MCE PRINT command for POWER_OFF for the HTPC device. (2) Modify the "Report Mapping Table" (in the Registry) to map PRINT to an obscure key combination of your choice (ALT_F5 perhaps, but not ALT_F4). (3) Use a tool to intercept that key combination and invoke your batch file. AutoHotKey could do this (which I have used), and EventGhost probably could too (which I have not used). However, I have a recollection that Windows 7 and later has some way of allowing users to define their own keyboard shortcuts. If you can find it, you could define ALT_F5 as invoking your batch file (so dispensing with AutoHotKey or EventGhost). I find it really strange that such a simple requirement seems to be so difficult to accomplish. It suggests that there is a simple and elegant way of doing this, but which none of us have yet spotted. :( -- from CyberSimian in the UK [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Talk
Power Off/Standby - Start batch file
Contact us
RSS
Top
Bottom