Jump to content


Photo

Amt Script Mod - To Go Along With Keymap Mod


  • Please log in to reply
3 replies to this topic

#1 Spaceman2004

Spaceman2004

    X-S X-perience

  • Members
  • PipPip
  • 395 posts
  • Xbox Version:v1.4
  • 360 version:none

Posted 20 February 2007 - 12:39 PM

This little mod allows the AMT script to use "Back" on the remote to act the same as MC360 when using the DVD keymap mod.

Edit /XBMC/scripts/Apple Movie Trailers/extras/lib/gui.py

Then fine the first "Remote"

You should see these lines...

CODE
    def onAction( self, action ):
        try:
            button_key = self.controller_action.get( action.getButtonCode(), 'n/a' )
            control = self.getFocus()
            if ( button_key == 'Keyboard ESC Button' or button_key == 'Back Button' or button_key == 'Remote Menu Button' ):
                self.exitScript()
            elif ( button_key == 'Keyboard Backspace Button' or button_key == 'B Button' or button_key == 'Remote Back Button' ):


Change 'Remote Menu Button' to 'Remote Back Button'

Then the next few lines later you should delete, "or button_key == 'Remote Back Button'"

You should have this...

CODE
    def onAction( self, action ):
        try:
            button_key = self.controller_action.get( action.getButtonCode(), 'n/a' )
            control = self.getFocus()
            if ( button_key == 'Keyboard ESC Button' or button_key == 'Back Button' or button_key == 'Remote Back Button' ):
                self.exitScript()
            elif ( button_key == 'Keyboard Backspace Button' or button_key == 'B Button' ):


Save the file, and then copy over the old version of gui on the xbox.

Now when you press 'Back' you should go back to the main blade.

When there is a fully working version of AMT is realised then I'll upload the full gui.py file with the DVD keymap mod, so things will be nice and easy to set up.

Edited by Spaceman2004, 20 February 2007 - 12:40 PM.


#2 nuka1195

nuka1195

    X-S Expert

  • Members
  • PipPipPip
  • 639 posts

Posted 28 February 2007 - 08:39 PM

QUOTE
When there is a fully working version of AMT is realised...


What's not working?


#3 Spaceman2004

Spaceman2004

    X-S X-perience

  • Members
  • PipPip
  • 395 posts
  • Xbox Version:v1.4
  • 360 version:none

Posted 01 March 2007 - 12:45 PM

It's back when you and Jezz were trying to figure stuff out when it wasn't working correctly with MC360 v1.

Of course I've no idea what was truely going on behind the scenes.

#4 o0oFoXo0o

o0oFoXo0o

    X-S Enthusiast

  • Members
  • 9 posts
  • Location:Germany
  • Xbox Version:v1.1
  • 360 version:v1 (xenon)

Posted 03 March 2007 - 04:46 PM

Hallo @ll !

QUOTE(Spaceman2004 @ Feb 20 2007, 12:46 PM) View Post

This little mod allows the AMT script to use "Back" on the remote to act the same as MC360 when using the DVD keymap mod.


Thank you man! Exactly that was iam searching for.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users