HTTP API Sendkey?
#1
Question 
I am trying to do recreate a keyboard press. I found in wiki the section that says you can do this using:

Quote:To send a keyboard event set buttoncode to F100 (hex) and add the required key’s ASCII value.

I have tried several different ways of doing this. What is the proper way?

I have tried:
http://xbox/xbmcCmds/xbmcHttp?command=SendKey(F100;1B)

http://xbox/xbmcCmds/xbmcHttp?command=SendKey=F100;1B


Also, I am assuming I should use the Hex value from the ASCII charts? So I would use 1B to simulate the Escape key?
I am sure I am missing something obvious here, as is usually the case. It is probably a formatting issue.

Any help would be appreciated. Cheers.
Reply
#2
Sendkey(F100+1B)

see, ADD the ascii value.
Reply
#3
spiff Wrote:Sendkey(F100+1B)

see, ADD the ascii value.

Haha! Yeah.... I knew it would be something simple like that. Thanks spiff Wink
Reply
#4
Strange, I just tested this on windows r18457 and it seems to have no effect? Can you verify that it works spiff?
Reply
#5
Just a friendly bump Wink

For the life of me, I still can't get this to work.

http://xbox/xbmcCmds/xbmcHttp?command=SendKey(F100+1B)


I know the webserver is working as this command works:
http://xbox/xbmcCmds/xbmcHttp?command=SendKey(11)
Reply
#6
uhm, what i meant (i havent really tested this) was

SendKey(F11B)

that is the SUM of F100 and the ascii code in question. you know, adding numbers Smile
Reply
#7
spiff Wrote:uhm, what i meant (i havent really tested this) was

SendKey(F11B)

that is the SUM of F100 and the ascii code in question. you know, adding numbers Smile

Yeah, I actually tried that as well (even though I did initially try it with a + sign because I can be pretty dense some times Wink )
Reply
#8
rite'o. then it needs some diggin', ticket it please
Reply
#9
Will do Spiff. Thanks for working with me and my troubles interpreting the obvious Big Grin


http://trac.xbmc.org/ticket/6092

Once this has been fixed I will request ninja status and add a little more information to the wiki, maybe even a working example. That might clear up the confusion for other users as well. Cheers.
Reply
#10
Big thanks to Wiso for fixing this. Works great Wink
Reply
#11
Doing a little more testing on this today. I am working on some new features for our XBMC Remote. Everything I have tested so far seems to working ok except for "\" which should toggle fullscreen. I have test on both Mac and Windows @ rev 19724. Can anyone else confirm?

Code:
http://xbmc/xbmcCmds/xbmcHttp?command=SendKey(0xF05C)

Cheers,
Rand
Reply
#12
Try 0xF0EC. See guilib/common/SDLKeyboard.cpp for instance.

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
#13
jmarshall Wrote:Try 0xF0EC. See guilib/common/SDLKeyboard.cpp for instance.

Cheers,
Jonathan

Ah, cheers I see it now. Strange, I have always seen it as "5C"

No matter, it works Wink

Rand
Reply
#14
Is it possible to send a modified keypress using this method?

example: Shift-F

I would like to be able to use this to jump to items (say artists) that start with a certain letter (in the case of my example 'F')

tia
Reply
#15
jitterjames Wrote:Is it possible to send a modified keypress using this method?

example: Shift-F

I would like to be able to use this to jump to items (say artists) that start with a certain letter (in the case of my example 'F')

tia
I would be interested too in knowing what is the key code of a key + shift:
I mean if key 'E' has a keycode = 0xF045, what is the keycode for Shift+E (or Ctrl+E, etc.)?

thanks
Reply

Logout Mark Read Team Forum Stats Members Help
HTTP API Sendkey?0