Jump to content
Sign in to follow this  

GetActiveKeyboardLayout and IME Mode

Recommended Posts

Hi -

I am trying to determine if there is a way programmatically to get the IME mode that your active window is using.. To explain this a little bit more here goes->

For text services and Input Language for my windows 7 computer I have Korean language and Korean Microsoft IME added.  I use Korean Microsoft IME.  The IME allows me to either type in English letters like --> abcdefg or in Hanja like this ---> 안녕, The method for switching between Han/Eng is by pressing the Right Alt key (which is hotkey builtin to windows for this function). 

Using the command GetActiveKeyboardLayout($hWnd) I can get the Language (which for Korean is 412). I need to figure out how to get the IME Mode (Is the application window setup to type in English(abcd) or Hanja (안녕)? I need Autoit to send keystrokes, but need to first determine what mode it is in so that it is sending the correct keystrokes.

I have googled this bug have not been able to come up with a solution..

Help would be greately appreciated with this ..


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...