PDA

View Full Version : Toggle "hide watched" with remote?


Crewone
2009-01-13, 00:44
Is it possible to toggle the "hide watched" menu option with a remote? (Using eventghost or a keypress)

I searched the wiki for the action in keymap.xml, but couldn't find it. :no:

Waffa
2009-01-13, 00:49
Look here. Add functions to keymap.

List of Built In Functions (http://xbmc.org/wiki/index.php?title=List_of_Built_In_Functions)

Crewone
2009-01-13, 00:56
I'm afraid that doesn't get me much closer.

I found this reference in the mediastream skin:

<control type="radiobutton" id="14">
<description>Watched Toggle</description>
<visible>Window.IsVisible(MyVideoLibrary)</visible>
<label>20367</label>
<include>OMButtonItem</include>
</control>

I somehow have to combine that with a built in function, but I'm at a loss which one.

jmarshall
2009-01-13, 01:01
Try:

SendClick(14)

Feel free to add this to the online manual:

SendClick([window,]controlID)

Emulates a click message from the given controlID in the (optionally given) window (name or id).

Cheers,
Jonathan

Crewone
2009-01-13, 01:04
Thanks. Will try it tomorrow! :nod:

KidKiwi
2009-01-13, 09:59
I'll give that a go as well as it's something I'd like on the remote too. Thx J.

Waffa
2009-01-13, 18:52
SendClick([window,]controlID)

Like this one.
Thankx Jonathan

sho
2009-01-13, 19:55
Where does this belong in the wiki? Builtins?
Where can you get a list of controlIDs?

Waffa
2009-01-13, 20:42
Belongs here.
List of Built In Functions (http://xbmc.org/wiki/index.php?title=List_of_Built_In_Functions)

Crewone
2009-01-13, 23:23
Works like a charm! Thanks!