Win Disabling WMC buttons while in XBMC
#1
Hi all,


like many others, i use WMC with XBMC. here is the issue i run into, though. menu on my remote opens wmc all teh time. now, you can say, just dont press menu, set another button the remote. well, this is for others, so it's not that easy. they want to click menu to get to the XBMC menu and it boots up wmc.

any ideas?
Reply
#2
The problem is that Windows grabs the signal from the green button and uses it to launch WMC, and there's nothing apps like XBMC can do to stop this.

If you're using an eHome remote (see http://wiki.xbmc.org/index.php?title=Usi...in_Windows for how to tell) then you can reconfigure the green button. With the cheaper MCE remotes the breen button sends a win-alt-enter keypress and you can't change this. In that case the only workaround is a bit hacky. see http://inchoatethoughts.com/launching-xb...ter-remote for how it's done.
Reply
#3
jhsrennie is of course right. But here are two simple solutions That I have discovered myself
  1. if you use the MCERemote add-on and configure your remote yourself, the MCE button is disabled
  2. If you use AutoHotKey (an extremly nicee open source keymapping program and codeing language for windows...You can do just about anything with it including having one key press have different effects depending on which window is in focus...so if XBMC is in focus you could write a script that makes the MCE button send the "shutdown" command...and when outside of XBMC...lets say in windows explorer, the MCE button sends the run MCE signal

AHK has its own community but I think it works hand in hand with XBMC windows users (you may be able to use AHK in linux using wine...I've never tried) here is one of my major scripts that I install on all of my windows machines:

Code:
^+p::Pause  ; Press Ctrl+Shift+P to pause. Press it again to resume.
^+r::Reload  ; Press Ctrl+Shift+R to Reload.


;-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
;                                                                            Windows Shortcuts
; Switch to Desktop input
#,::^!f1
Return
; Switch to Laptop input
#.::^!f2
Return
; Switch tabs in chrome
<^tab::^space
Return
; Command line
#Space::Run "C:\cygwin\Console-2.00b122-Beta\Console2\Console.exe"
Return
; Computer Management
<#^m::Run "C:\Windows\system32\compmgmt.msc"
Return
; System Configuration
<#^c::Run "C:\Windows\system32\msconfig.exe"
Return
; Task Manager
<#^t::Run "C:\Windows\System32\TM.exe"
Return
; Scheduler
<#s::Run "C:\Program Files (x86)\SystemScheduler\Scheduler.exe"
Return
; Control Panel
<#LControl::Run "C:\Windows\system32\control.exe"
Return
; Norton Security Suite
<#`::Run "C:\Program Files (x86)\Norton Security Suite\Engine\5.1.0.29\uistub.exe"
Return
; Auto-m8
<#a::Run "C:\Users\TJ\Downloads\Auto-m8\Auto-m8.exe"
Return
; Calibre
<#c::Run "C:\Program Files (x86)\Calibre2\calibre.exe"
Return
; Google Chrome
<#g::Run "C:\Users\TJ\AppData\Local\Google\Chrome\Application\chrome.exe"
Return
; Irfanview
<#v::Run "C:\Program Files (x86)\IrfanView\i_view32.exe"
Return
; Windows Media Center
<#w::Run "C:\Windows\ehome\ehshell.exe
Return
; XBMC
<#x::Run "C:\Program Files (x86)\XBMC\XBMC.exe"
Return
;R Win
~AppsKey::RWin
Return
; Calculator
>#=::Run "C:\Windows\system32\calc.exe"
Return
; Ccleaner
>#c::Run "C:\Program Files\CCleaner\CCleaner64.exe"
Return
; iTunes
>#i::Run "C:\Program Files (x86)\iTunes\iTunes.exe"
Return
; Windows Media Player
>#m::Run "C:\Program Files (x86)\Windows Media Player\wmplayer.exe"
Return
; Notepad++
>#n::Run "C:\Program Files (x86)\Notepad++\notepad++.exe"
Return
; Xfire
>#x::Run "C:\Program Files (x86)\Xfire\Xfire.exe"
Return
; Play/Pause = LCtrl & Up
>^UP::^p
Return
; Stop = LCtrl & Down
>^DOWN::^s
Return
; Previous = LCtrl & Left
>^LEFT::^b
Return
; Rewind = LCtrl, Shift, & Left
>^!LEFT::^+b
Return
; Next = LCtrl & Right
>^RIGHT::^f
Return
; Fast Foward = LCtrl, Shift, & Right
>^!RIGHT::^+b
Return

; Switch Mouse to Desktop
; ~!Left::
; Sleep 50
; Send ^!{F1}
; Return

; Switch Mouse to Laptop
; ~!Right::
; Sleep 50
; Send ^!{F2}
; Return

;                                                                        MCE Remote Remappped
; Volume up = alt+f8
!f8::Volume_Up
; Volmume down = alt+f7
!f7::Volume_Down
; Mute = alt+f6
!f6::Volume_Mute
Return

;                                                                           Keyboard Mouse
CapsLock::RWin ; Caps (Toggles) Mouse Mode
!^1::CapsLock ; Ctrl + Alt + 1 => CapsLock Toggle
Return
>#`::Click, 2 ; Caps + ~ => Double Click
Return
*>#Up::MouseMove, 0, -15, 0, R  ; Caps + UpArrow => Move cursor upward
*>#Down::MouseMove, 0, 15, 0, R  ; Caps + DownArrow => Move cursor downward
*>#Left::MouseMove, -15, 0, 0, R  ; Caps + LeftArrow => Move cursor to the left
*>#Right::MouseMove, 15, 0, 0, R  ; Caps + RightArrow => Move cursor to the right
Return
*>#Return::  ; Caps + Enter => Left-click (hold down Control/Shift to Control-Click or Shift-Click).
SendEvent {Blind}{LButton down}
KeyWait Enter ; Prevents keyboard auto-repeat from repeating the mouse click.
SendEvent {Blind}{LButton up}
Return
*>#AppsKey::  ; Caps + AppsKey => Right-click
SendEvent {Blind}{RButton down}
KeyWait AppsKey  ; Prevents keyboard auto-repeat from repeating the mouse click.
SendEvent {Blind}{RButton up}
Return
[/quote]
Reply
#4
I've used used an application called lmremote in the past that allows you to assign an alternative action to the green start button. Not sure if it is still working though but could be worth investigating
Openelec on ASRock ION 330 / Kodi on Win 7 PC
Reply

Logout Mark Read Team Forum Stats Members Help
Disabling WMC buttons while in XBMC0