Posts: 928
Joined: Feb 2004
Reputation:
0
Asteron
"Skilled" Python Coder
Posts: 928
those codes are simply the ids of the actions in keymap.xml (not actually button codes). since the script window doesnt have its own section in keymap.xml (though i think you can add this if you know the script window id) all python scripts just use the global key bindings.
you can see that no action is assigned to y globally so it triggers the blank action code 0 along with all other globally unbound buttons (black, triggers too maybe).
-ast
Posts: 928
Joined: Feb 2004
Reputation:
0
Asteron
"Skilled" Python Coder
Posts: 928
the best way to do the y button is to go into keymap.xml,
add another entry into the global section with some unused number for the id and set it to y (the description doesnt matter)
and change the def in the script of action_y to that same number.
0 will always be unreliable since it is the default value of any unassigned button.
as for the triggers activating it... i bet the triggers send two events.. one analog one digital and only one is bound.
Posts: 928
Joined: Feb 2004
Reputation:
0
Asteron
"Skilled" Python Coder
Posts: 928
hey flash... i've been reading through this script.. there's some pretty neat stuff in there :-) that specifying user agent thing is pretty smart cause who knows when yahoo will block python. i see you did end up manually doing the navigation. that must of been really fun :-)
its a shame that window.getfocus() don't work so you wouldnt have to keep track of all that. theres a bug i found in the xbmc module (its in the dev forum) but who knows how long until everyone gets a new version.
Posts: 16
Joined: Jan 2005
Reputation:
0
great script!
an option to download the videos would be nice.
for now i add the videos i want to favorites and
get the mms urls from that text file, then use
mmsclient to download the streams.
Posts: 16
Joined: Jan 2005
Reputation:
0
ok..
unless someone ports mmsclient to xbox and then calls it
from launch script with mms url as argument :thumbsup:
anyway, its a big help with the mms urls in the favorites.
python is very similar to arexx which i've been programming
scripts in for years on amiga, i should try and make some
scripts but where can i find docs on python xbmc spesific
stuff ? i tried to just simply download a picture from
internet and displaying it, but i couldnt even manage to
download the complete image, only the 20480 first bytes
:nuts:
Posts: 656
Joined: Jul 2004
Reputation:
2
i just spent a few minutes creating a new background image (720 x 480) using the default project mayhem ii file and applying the new launch logo. nothing fantastic but it fits better with the rest of xbmc now with the same look and feel...
is there a good place i can upload this image to for others to grab ?