Kodi Community Forum
Problem with ActivateWindow and keymap - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Windows (https://forum.kodi.tv/forumdisplay.php?fid=59)
+---- Thread: Problem with ActivateWindow and keymap (/showthread.php?tid=235331)



Problem with ActivateWindow and keymap - ddlooping - 2015-08-14

Hi all Smile

I'm trying to implement keyboard shortcuts to activate some windows but can't get them all to work.

Windows 7 + Isengard 15.0 + Eminence

PHP Code:
<keymap>
    <global>
        <
keyboard>
            <
F1>ActivateWindow(Videos,videodb://recentlyaddedmovies/,return)</F1>
            
<F2>ActivateWindow(Videos,videodb://recentlyaddedepisodes/,return)</F2>
            
<F3>ActivateWindow(Videos,videodb://movies/titles/,return)</F3>
            
<F4>ActivateWindow(Music,musicdb://artists/,return)</F4>
            
<F5>XBMC.ReloadSkin()</F5>
        </
keyboard>
    </global>
</
keymap

F1, F2 and F5 work but not F3 and F4.
F3 brings me to the movies window where I still have to select Titles manually and F4 does nothing.

Any help would be greatly appreciated. Nod


RE: Problem with ActivateWindow and keymap - Bullsboy - 2015-08-14

I'm not an expert on this but where I've done it before, I've created a favourite and then looked in favorites.xml to see the code.

For titles, it's returning
Code:
ActivateWindow(10025,&quot;videodb://movies/titles/&quot;,return)

Does that help?


RE: Problem with ActivateWindow and keymap - ddlooping - 2015-08-14

(2015-08-14, 18:47)Bullsboy Wrote: I'm not an expert on this but where I've done it before, I've created a favourite and then looked in favorites.xml to see the code.

For titles, it's returning
Code:
ActivateWindow(10025,&quot;videodb://movies/titles/&quot;,return)

Does that help?

Thanks for the reply, Bullsboy. Smile

I've tried with single quotes, with "&quot;", with 10025 in place of "Videos" but it's still goes to the movies page and Titles needs to be selected manually. Confused


RE: Problem with ActivateWindow and keymap - ddlooping - 2015-08-14

Damn, the code in my original post actually works.
I was refreshing the skin when I needed to restart Kodi.
Sorry everybody.Blush


RE: Problem with ActivateWindow and keymap - Bullsboy - 2015-08-14

No worries. At least you fixed it