Share via

Registry entry information for input method editor situations

Anonymous
2022-05-10T16:37:22+00:00

I'm trying to write an AutoHotKey script that has conditional logic based on when my selected keyboard language is Japanese. I've been using the script posted here to just test using AHK to obtain the current keyboard layout and return it in a dialog box, but it's behaving oddly with Japanese, probably because of the interference of the input method editor (in this case, Google Japanese Input). When I've selected either of my two English keyboard layouts, it gets mildly confused about exactly what data to return (as these are custom keyboards made through MSKLC), but does at least return a sensible 'us' layout and 'US' language identifier even though neither is technically correct. When I switch to Japanese, though, it returns ' ' for the layout (i.e. nothing) and 'Arabic (101)' for the language identifier - likely because the Arabic 101 layout's code is xxxx0401 and as the lowest possible value that's the closest to a default output it can find.

What's going on here? Why isn't it properly finding xxx0411 for Japanese? How exactly is the IME interfering with this? I can't find anything in the registry that has to do with hooking an IME up to Japanese text entry (all I can find is just a 00000411 entry for the keyboard layout) and Microsoft's documentation on creating new IMEs is unhelpfully minimal. What do I need to point this script to to tell when I'm using Japanese?

Windows for home | Windows 10 | Input and language

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2022-05-11T06:25:19+00:00

    Hi sjiveru,

    Welcome to the Microsoft Community.

    It sounds like you are encountering an issue when writing an AutoHotKey script with the input method editor. Sorry for the inconvenience you are facing. However, this issue is more suitable to be published in Microsoft IT Forum since it's face to developers. This community caters to IT professionals who can provide advanced troubleshooting steps for your concern. And you can click on Ask a Question to start.

    At the same time, you can click here to check the use of IME.

    I hope this helps, and feel free to reach back if you need further assistance.

    Best regards

    | Lynn Sun Microsoft Community Support Specialist


    * Beware of scammers posting fake support numbers here.

    * If your issue is not resolved, you can reply to the post again and we will continue to provide technical support for you.

    * Kindly Mark and Vote this answer if it helps as it will be beneficial to more community members reading here.

    Was this answer helpful?

    0 comments No comments