Posts: 1,012
Joined: Jan 2007
Reputation:
32
Ok, I looked in the wiki, and searched the forums, how can you execute something like "Info" or "AspectRatio" from a skin button, like XBMC.PlayerControl(AspectRatio) ?
Posts: 5,292
Joined: Jun 2006
Reputation:
62
Jezz_X
Team-XBMC Skinner
Posts: 5,292
don't think you can but best to wait for jmarshall to answer
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Nope, you can't. I suspect, however, that the actions as defined in keymap.xml may well work in an <onclick> tag, so try
<onclick>AspectRatio</onclick>
<onclick>Info</onclick>
Cheers,
Jonathan
Posts: 928
Joined: Feb 2004
Reputation:
0
Asteron
"Skilled" Python Coder
Posts: 928
Super Hacky way would be to issue a SendKey built-in command to push the "Y" button.
Actually that might not work if the OSD has focus... hmm.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
<onclick>AspectRatio</onclick> works just fine.
Trouble is that you have to do it from the VideoFullScreen window (just like you have to with a keymap.xml), but I suspect you are doing it from VideoOSD.
The real fix in this regard is making these actions performable from the window of your choice. One solution is just passing unhandled actions down to the fullscreen window from the videoosd (simple, and no unintended consequences to my knowledge), but that's not really generic. Anything more than that requires quite a bit of stuff done (the handling code for the action will need moving most probably.)
Cheers,
Jonathan