is there a keypress statement?
#1
Can i send a keypress to xbmc from a python script?
Reply
#2
use the executehttpapi() command with sendkey. pydocs and manual links in my signature
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#3
this is what im using and i get no responce

responce=xbmc.executehttpapi("SendKey(244)")

244 is the select remote key

also tried http://ipaddress/xbmcCmds/xbmcHttp?comma...ameter=244

and again nothing...

This is the second documented function that doesnt work in XBMC that ive come across



Nuka1195 Wrote:use the executehttpapi() command with sendkey. pydocs and manual links in my signature
Reply
#4
ok forget that, unless someone wants to clarify.

When i set xbmc to show keycodes, I get 244 when i press select...however in xbirremote.h then select is defined as 11

Thats why the sendkey failed...because i was sending what xbmc told me was the code for select, when actually it wasnt at all....
Reply
#5
244 is the OBC (original button code), whereas internally, microsoft uses the complement of it (255 - OBC).

The keymapping stuff filters this for you - obviously the webserver's sendkey doesn't do this filtering.

Cheers,
Jonathan
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#6
okay dokey, i got there in the end, hopefully others will pick this up on a search because its had me perplexed for hours
Reply

Logout Mark Read Team Forum Stats Members Help
is there a keypress statement?0