got error on 1st invocation...
[img=http://img90.exs.cx/img90/2973/err1jb.th.png]
might be my problem, but just thought id let you know, it didn't work 'out of the box' so to speak.
{edit}
my suggestion, add option explicit to the very top of all your code modules & other code windows, weed out all of the undefined variables & you will have a much better piece of work. i am not criticising your work, on the contrary, we need something like this, just add the option explicit & you most likely find a hand full bugs that slipped through your net.
good luck, hope to see this finished.
ps
as i didn't get to see it in operations, can i ask, are you able to add items & regenerate the xml?
i often edit keymap for <remotecode> entries to execute scripts / restart xbox etc (i have a touch screen pronto remote).
example, i have in my global section...
Quote:<action>
<description>my music shortcut</description>
<id>xbmc.activatewindow(501)</id>
<remotecode>151</remotecode>
</action>
<action>
<description>launch dvdx</description>
<id>xbmc.runxbe(e:\apps\dvdx\default.xbe)</id>
<remotecode>153</remotecode>
</action>