type word by click in all keyboards

x64 Replacement/Alternative to Microsoft's IntelliMouse application.
Forum rules
Please read the forum rules before posting for the first time.
The more information you can provide, the quicker and more accurately someone can help.
Usernam
New User
Posts: 6
Joined: Tue Jan 23, 2018 12:59 pm

type word by click in all keyboards

Post by Usernam » Tue Mar 20, 2018 9:58 am

2.17:
Windows 7-10:

What language and keyboard layout do you use in Windows?:
English / Russian

Hi!

I need to type one word by clicking right mouse button.
For example I need to type: "Alphabet" by right mouse button click.
So "Simulated Keys => {Shift}Alphabet"
It work good, but only in English keyboard, when I switch to Russian it's not work at all.

How to deal with it? Is there any method to select correct language in XMBC?

Thank you!

User avatar
phil
Site Admin
Posts: 5596
Joined: Sun Apr 06, 2003 11:12 pm

Re: type word by click in all keyboards

Post by phil » Tue Mar 20, 2018 10:14 am

Unfortunately XMBC uses the system language. You might get away with turning on the option "Load US English Keyboard layout" in advanced settings but I somehow don't think that will work properly - its worth a try though.
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9, Logitech MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, Intel i5-6600k, Asus 170-A, 16GB DDR4,
nVidia GeForce GTX 970, 2xEvo 850 (RAID 0), 2x2TB WD Black (RAID1)

Usernam
New User
Posts: 6
Joined: Tue Jan 23, 2018 12:59 pm

Re: type word by click in all keyboards

Post by Usernam » Tue Mar 20, 2018 11:45 am

Turn on "Load US English keyboard if no equivalent is available" option and nothing :(

User avatar
phil
Site Admin
Posts: 5596
Joined: Sun Apr 06, 2003 11:12 pm

Re: type word by click in all keyboards

Post by phil » Tue Mar 20, 2018 11:48 am

I thought that might happen :(
XMBC uses the SendInput API and keyboard scancodes - therefore its closely tied to the input language of your keyboard.
When you keyboard is set to Russian, how do you type the letters Alphabet? Is it possible (without switching keyboard layouts? If it is, then we should be able to get it working but working out all the codes could be tricky (and then it probably wont work when not set to Russian as the codes will be different).

Thanks,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9, Logitech MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, Intel i5-6600k, Asus 170-A, 16GB DDR4,
nVidia GeForce GTX 970, 2xEvo 850 (RAID 0), 2x2TB WD Black (RAID1)

User avatar
injtsvetkov
Fanatic
Posts: 257
Joined: Mon Jun 06, 2016 8:51 am

Re: type word by click in all keyboards

Post by injtsvetkov » Tue Mar 20, 2018 4:23 pm

Same here :?

It seems that when you enter a Latin letter in SymKeys, XMBC sends it as a VK code instead of scancode, therefore it is "input language" dependent.
HAMA Mirano
Windows 8.1 x64, Intel i5-3230M @ 2.60GHz, 4GB

Usernam
New User
Posts: 6
Joined: Tue Jan 23, 2018 12:59 pm

Re: type word by click in all keyboards

Post by Usernam » Thu Mar 22, 2018 9:13 am

phil wrote:
Tue Mar 20, 2018 11:48 am
When you keyboard is set to Russian, how do you type the letters Alphabet? Is it possible (without switching keyboard layouts? If it is, then we should be able to get it working but working out all the codes could be tricky (and then it probably wont work when not set to Russian as the codes will be different).
Its impossible to type "Alphabet" without switching to English keyboard :) No simmilar letters :)
Maybe it is possible to insert word "Alphabet" not by typing but something like paste from clipboard? Copy-Paste is not depend on keyboard layout.

User avatar
sukemaru
Committed
Posts: 107
Joined: Tue Oct 18, 2016 7:21 pm

Re: type word by click in all keyboards

Post by sukemaru » Thu Mar 22, 2018 12:13 pm

Hi Usernam,
You may try below into SimKey.

Code: Select all

{CB:Alphabet}{CTRL}V
e.g. I use SimKey on the file-view of explorer to jump to the target diretory.

Code: Select all

{F4}{CB:<path_strings>}{CTRL}V{ENTER}{F6}
<path_strings> is the target path which has Japanese KANA and Chinense charactor (2 byte letters / it is necessary to type and convert that path with IME), this code works properly as I will.

suke
Logitech AnywhereMX (7 Btn), M555b (5 Btn) w/ SetPoint v6.32
Microsoft WirelessLaserMouse8000 (5 Btn), WLM5000 (5 Btn) w/ IntelliPoint v6.30
XMBC: now Latest BETA as Portable (since v1.48, 2009)
OS: WinXP SP3 (32bit) / Locale: JPN

User avatar
phil
Site Admin
Posts: 5596
Joined: Sun Apr 06, 2003 11:12 pm

Re: type word by click in all keyboards

Post by phil » Thu Mar 22, 2018 2:19 pm

Which reminds me... {CB} needs to go into the docs and simkey window text!
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9, Logitech MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, Intel i5-6600k, Asus 170-A, 16GB DDR4,
nVidia GeForce GTX 970, 2xEvo 850 (RAID 0), 2x2TB WD Black (RAID1)

User avatar
sukemaru
Committed
Posts: 107
Joined: Tue Oct 18, 2016 7:21 pm

Re: type word by click in all keyboards

Post by sukemaru » Fri Mar 23, 2018 7:00 am

Regarding SimKey and {CB} tag ...
("Load US English keyboard if no equivalent is available" option in advanced settings : disabled.)

1.
I tried to set αβ㎜㎏☆©!"#$%&'()=~|-^\`@[;:]+*,./\<>?_{abc} into SimKey strings (IME is required to input "alpha-beta-millimeter-kilogram-star-copyright sign" and to convert, they are 2 byte letters (symbol/sign/mark) in JP Windows environ), and run SimKey on a text-editor
then typed αβ㎜㎏☆c!"#$%&^();~|-^¥@@「::」+*、。/¥<>?_ .

{Curly Brackets and contained letters} were ignored, some letters are not typed fine, and IME input-mode was turned ON automatically at the starting to type by SimKey, so the result was not as I intented.

2.
set !"#$%&'()=~|-^\`@[;:]+*,./\<>?_αβ㎜㎏☆© (removed {abc} and chenged the order of letters)
then typed !"#$%&^();~|-^\@@[::]+*,./\<>?_αβ㎜㎏☆c .

Again some letters were not typed fine and IME input-mode was turned ON automatically in the midst of typing, so the result was not as I intented too.

3.
set {CB:!"#$%&'()=~|-^\`@[;:]+*,./\<>?_αβ㎜㎏☆©}{CTRL}V
then !"#$%&'()=~|-^\`@[;:]+*,./\<>?_αβ㎜㎏☆© .

It worked fine and fast! :)

4.
set {CB:!"#$%&'()=~|-^\`@[;:]+*,./\<>?_αβ㎜㎏☆©{abc}}{CTRL}V (added {abc} again)
then }!"#$%&'()=~|-^\`@[;:]+*,./\<>?_αβ㎜㎏☆©{abc .

Again {Curly Blakets} were not typed fine, they seemed to be reserved by XMBC for {TAGs} of SimKey.

NOTE: Windows XP SP3 (x86), Japanese
JPN keybord layout (compact design)

Image
Image

Just a reporting,
suke


EDIT:
If the clipboard already contains files/strings/data which have not been "pasted" yet, {CB} tag overwrites the data on the clipboard with <TEXT> ... It would be more useful to be able to save(/return) <TEXT> in(/from) XMBC's own or temporary memory area, as like as {MSAVE:<n>}/{MREST:<n>} tags. :?:
Logitech AnywhereMX (7 Btn), M555b (5 Btn) w/ SetPoint v6.32
Microsoft WirelessLaserMouse8000 (5 Btn), WLM5000 (5 Btn) w/ IntelliPoint v6.30
XMBC: now Latest BETA as Portable (since v1.48, 2009)
OS: WinXP SP3 (32bit) / Locale: JPN

User avatar
phil
Site Admin
Posts: 5596
Joined: Sun Apr 06, 2003 11:12 pm

Re: type word by click in all keyboards

Post by phil » Fri Mar 23, 2018 8:53 am

Just a note, to send a curly bracket, you need to put two in... {{ and }}
otherwise, everything inside is considered a keyword tag and you will see in the log that an unrecognized tag was found!

I noticed that the documentation simkey window already mentions {CB} in "special function tags" - I just missed it yesterday.

I'm not sure if I can save the clipboard and restore it... I will have a look but I have a feeling it wont be that simple...

As to the rest of that, urrr OK.. I guess I'm going to have to learn what IME input mode is and why its important - the disadvantage of not knowing/using non-englsih languages!
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9, Logitech MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, Intel i5-6600k, Asus 170-A, 16GB DDR4,
nVidia GeForce GTX 970, 2xEvo 850 (RAID 0), 2x2TB WD Black (RAID1)

User avatar
sukemaru
Committed
Posts: 107
Joined: Tue Oct 18, 2016 7:21 pm

Re: type word by click in all keyboards

Post by sukemaru » Fri Mar 23, 2018 9:15 am

phil wrote:
Fri Mar 23, 2018 8:53 am
Just a note, to send a curly bracket, you need to put two in... {{ and }}
Thank you for the explanation! It should be noted in somewhere (SimKey panel or User Guide PDF). :)

suke
Logitech AnywhereMX (7 Btn), M555b (5 Btn) w/ SetPoint v6.32
Microsoft WirelessLaserMouse8000 (5 Btn), WLM5000 (5 Btn) w/ IntelliPoint v6.30
XMBC: now Latest BETA as Portable (since v1.48, 2009)
OS: WinXP SP3 (32bit) / Locale: JPN

User avatar
sukemaru
Committed
Posts: 107
Joined: Tue Oct 18, 2016 7:21 pm

Re: type word by click in all keyboards

Post by sukemaru » Fri Mar 23, 2018 10:08 am

sukemaru wrote:
Fri Mar 23, 2018 7:00 am
If the clipboard already contains files/strings/data which have not been "pasted" yet, {CB} tag overwrites the data on the clipboard with <TEXT> ... It would be more useful to be able to save(/return) <TEXT> in(/from) XMBC's own or temporary memory area, as like as {MSAVE:<n>}/{MREST:<n>} tags. :?:
phil wrote:
Fri Mar 23, 2018 8:53 am
I'm not sure if I can save the clipboard and restore it... I will have a look but I have a feeling it wont be that simple...
I will create a separated thread to request NEW feature as above.

Thanks,
suke


EDIT:
new thread "Feature Request: NEW SimKey tag to input TEXT with IME"
viewtopic.php?f=6&t=3844
Logitech AnywhereMX (7 Btn), M555b (5 Btn) w/ SetPoint v6.32
Microsoft WirelessLaserMouse8000 (5 Btn), WLM5000 (5 Btn) w/ IntelliPoint v6.30
XMBC: now Latest BETA as Portable (since v1.48, 2009)
OS: WinXP SP3 (32bit) / Locale: JPN

User avatar
Kukurykus
Committed
Posts: 198
Joined: Sat Jul 02, 2016 1:15 pm

Re: type word by click in all keyboards

Post by Kukurykus » Fri Mar 23, 2018 11:29 am

phil wrote:
Fri Mar 23, 2018 8:53 am
I'm not sure if I can save the clipboard and restore it... I will have a look but I have a feeling it wont be that simple...
I could not do it with Command Prompt. I'm not sure is it possible with native .js, but perhaps with .vbs. Now I do it using https://autohotkey.com/. How I to do it: viewtopic.php?f=6&t=2625&start=105#p14558

There're also some ideas (refered to post from previous page) about {CBR:<TEXT>} / more about in Item 1
HAMA Roma, Rapoo 3920P
Windows 10 x64, Intel i5-4670K @ 3.40GHz, 8GB,
Intel(R) HD Graphics 4600, Intel SSD 179 GB HDD

User avatar
Kukurykus
Committed
Posts: 198
Joined: Sat Jul 02, 2016 1:15 pm

Re: type word by click in all keyboards

Post by Kukurykus » Fri Mar 23, 2018 12:02 pm

phil wrote:
Thu Mar 22, 2018 2:19 pm
Which reminds me... {CB} needs to go into the docs and simkey window text!
Not everyone knows, and that is not wrote there, that {CB:} clears your clipboard (however that's obvious).
HAMA Roma, Rapoo 3920P
Windows 10 x64, Intel i5-4670K @ 3.40GHz, 8GB,
Intel(R) HD Graphics 4600, Intel SSD 179 GB HDD

User avatar
phil
Site Admin
Posts: 5596
Joined: Sun Apr 06, 2003 11:12 pm

Re: type word by click in all keyboards

Post by phil » Fri Mar 23, 2018 4:18 pm

Kukurykus wrote:
Fri Mar 23, 2018 12:02 pm
phil wrote:
Thu Mar 22, 2018 2:19 pm
Which reminds me... {CB} needs to go into the docs and simkey window text!
Not everyone knows, and that is not wrote there, that {CB:} clears your clipboard (however that's obvious).
{CB} is documented in the simkey window. Strictly speaking {CB} or {CB:} does not "clear" the clipboard, it sets it to what you put in the tag - if you put nothing in the tag, well then, yeh it is obviously setting the clipboard to nothing and effectively clearing it... That surely is common sense?!
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9, Logitech MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, Intel i5-6600k, Asus 170-A, 16GB DDR4,
nVidia GeForce GTX 970, 2xEvo 850 (RAID 0), 2x2TB WD Black (RAID1)

Post Reply