Page 1 of 1

Add text

Posted: Fri Jun 11, 2021 9:09 am
by Miau
XMBC Version V 2.19.2:
Total newbie is asking: How to add texts with a click? I would like to ad sentence with capital letters and line breaks. I tried {CTRL}text{CTRL} in the beginning and it did nothing.

Re: Add text

Posted: Fri Jun 11, 2021 2:43 pm
by phil
Simulated keystrokes...
Then just type the text. If you want to force it to be uppercase, then you either need to prefix EVERY character with {SHIFT} or maybe turn on CAPS LOCK and perhaps off again afterwards {CAPSLOCKON} / {CAPSLOCKOFF}

For the line breaks, {ENTER} or {RETURN} and for spaces, you probably need {SPACE}

Re: Add text

Posted: Tue Jun 15, 2021 7:34 am
by Miau
Thank you so much!! Works perfectly :cheers:

Re: Add text

Posted: Sun Oct 24, 2021 6:36 pm
by JoDes
Is it also possible to add special characters?
I wont to place an Email adres with a simulatied key stroke, but the @ sign dosn't apear and is replaced as at.

Re: Add text

Posted: Sun Oct 24, 2021 9:45 pm
by phil
@ works fine for me in my simulated keystrokes - I'm not sure how it could possibly be replaced by "at" ??? Maybe its a difference in your locale/keyboard layout?
If you find the virtual key code for @ you can try using {VK:<code>} or scan code {scan:<code>}

Re: Add text

Posted: Mon Oct 25, 2021 7:08 am
by JoDes
none of them are wording. Keyboard combination for @ is {alt}064. I supose thats not a Virtual key.
Is it possible to make a combination with the alt- key?

Re: Add text

Posted: Mon Oct 25, 2021 8:42 pm
by phil
OK You are not really giving me much to go on here.

Firstly I just noticed now that you hijacked someone else's thread, this is against the rules, next time create a new thread for a new question, even if you think its related! It makes it much easier to track and it does not bother the OP with notifications about new content in his thread that is (probably) not relevant to him!

Secondly, if you don't answer my questions, how do you expect me to help you?

When you say none work - what does that mean?
Do they not send anything?
Do they send the wrong thing?


Virtual key code for @ (on my keyboard at least) is HEX 0x1c0 (448 decimal) but as it required shift also, the following works for me {shift}{vkc:448}
Scan code for @ on my keyboard (UK/GB English) HEX 0x10028 (65576 decimal) and this also works: {shift}{sc:65576}

But then as I said, simply using @ in the key sequence works for me - perhaps because my locale is English. If the @ key is on your keyboard there WILL be a scan code for it and a virtual keycode for it - finding said code is the tricky bit (scan code at least is physically key location dependent) and you may well need {shift} before it if you have to press SHIFT + the key on your keyboard.

As for using the alt combo - it may be possible, but simulated keystrokes {ALT}64 wont work because it will release ALT after the 6. You may be able to use {PRESS}{ALT}64{RELEASE}{ALT} with method 1 (or perhaps a different method will be required)
Infact it seems I can no longer type ALT and a number to insert the ASCII code. I'm sure it used to work - maybe its application specific - this means I cant test it though.