Virtual keys
#1
Hey there,

I was wondering if it is possible to mimic a keystroke with a onscreen button? Is it possible to have a button's <onclick> to be a keystroke, say up or down?

Appreciate the help.

Thieske
Reply
#2
there's a list of 'build in functions' available in the xbmc skinning manual

maybe this is the one you're looking for:
Quote:Control.Message(id,message,[windowid])

sends a given message to a control in a given window (or active window if omitted). Messages can be movedown, moveup, pagedown, pageup, click.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
Thanx for the replay.

Can I mimic the arrow keys with this function?

Thieske
Reply
#4
I think it depends on the control but generally the moveup,movedown etc will work with things like the spin control to change the value.

How ever you mention a button so wondering if you mean you want the <onclick> to change to a different control. Therefore for that purpose you would use <onup> <ondown> <onleft> <onright> with the id of the control you want to change to.

For example

<ondown>4</ondown> will move to the control with id 4 when cursor down key pressed.
Currently working on Ellipsis 1.3 Updates. Update Requests Here.
Ellipsis for XBMC 1.2.1 Click here to download & for SVN details.
Twitter.com/TeamBlackbolt | Facebook.com/TeamBlackbolt1 | TeamBlackbolt.co.uk
Reply

Logout Mark Read Team Forum Stats Members Help
Virtual keys0