Program a Shutdown button on the Remote Control

If you need any help with XBMC4XBOX, such as installing or using the software, please post it in here.
Post Reply
MRN3
Posts: 5
Joined: Wed Aug 06, 2014 11:42 pm
Has thanked: 10 times

Program a Shutdown button on the Remote Control

Post by MRN3 »

Hi,
i am new here and my english isnt the best, so i try to explain what i wanna ask.

So, some of the buttons on the original xbox remote arent used by xbmc4xbox, is there any way to "program" one of these unused buttons as a instant shut-down button ?

And if thats possible, how can i do that ?
User avatar
Spongy
Posts: 97
Joined: Sun Jul 08, 2012 5:11 am
Has thanked: 16 times
Been thanked: 18 times

Re: Program a Shutdown button on the Remote Control

Post by Spongy »

Edit system/keymaps/remote.xml

In the global section, you could add something like this.

Code: Select all

<zero>XBMC.ShutDown()</zero>
That would shut it off at the press of a button, but you'll be sorry.
Instead add something like this.

Code: Select all

<zero>XBMC.ReplaceWindow(ShutdownMenu)</zero>
Which will bring up the shutdown menu.
That code uses the zero button. You could use whatever button you want.
MRN3
Posts: 5
Joined: Wed Aug 06, 2014 11:42 pm
Has thanked: 10 times

Re: Program a Shutdown button on the Remote Control

Post by MRN3 »

Thank you for your reply.

I edited the remote.xml, then rebooted the xbox but it doesnt work.

I tried both codelines, but nothing happens.

I attached the remote.xml (as zip), maybe i did something wrong.

I ftp'ed the remote.xml to my pc, opened it with XML Notepad 2007, edited it, saved it, ftp'ed it back to the xbox, shutdown xbox, rebooted, then on home screen pressed 0 but nothing happened.
Attachments
remote.zip
(2.5 KiB) Downloaded 88 times
User avatar
Spongy
Posts: 97
Joined: Sun Jul 08, 2012 5:11 am
Has thanked: 16 times
Been thanked: 18 times

Re: Program a Shutdown button on the Remote Control

Post by Spongy »

You added it to the <remote name="mce"> section instead of the regular <remote> section. So go to settings>system>general and enable "use mce/universal remote" and see how that works for you. If it doesn't, then turn that setting off and edit the file again in the right place.
MRN3
Posts: 5
Joined: Wed Aug 06, 2014 11:42 pm
Has thanked: 10 times

Re: Program a Shutdown button on the Remote Control

Post by MRN3 »

Thank you very much, I fixed the xml and it works fine now.


BTW, does that "but you'll be sorry" stand for, "You could accidentaly turn of your xbox and you need to stand up and turn it on again", or do you mean that this turning off the xbox with the Zero Button could harm my xbox ?
Spongy wrote:

Code: Select all

<zero>XBMC.ShutDown()</zero>
That would shut it off at the press of a button, but you'll be sorry..
User avatar
Spongy
Posts: 97
Joined: Sun Jul 08, 2012 5:11 am
Has thanked: 16 times
Been thanked: 18 times

Re: Program a Shutdown button on the Remote Control

Post by Spongy »

"You could accidentally turn of your xbox and you need to stand up and turn it on again"
That.^
Post Reply