Problem with ActivateWindow and keymap
#1
Exclamation 
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
Reply
#2
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?
Reply
#3
(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
Reply
#4
Damn, the code in my original post actually works.
I was refreshing the skin when I needed to restart Kodi.
Sorry everybody.Blush
Reply
#5
No worries. At least you fixed it
Reply

Logout Mark Read Team Forum Stats Members Help
Problem with ActivateWindow and keymap0