change language of typing

Hi All,

How can I change the language of typing from the program (which API function is
called and how) instead of changing the language directly from taskbar with
mouse

Thx for your advise.

Sandor Torok
Hungary



Answer this question

change language of typing

  • matley

    #define KLF_ACTIVATE         0x00000001

    declare integer LoadKeyboardLayout in win32api string, integer
    nHKL = LoadKeyboardLayout("0000040e", KLF_ACTIVATE) && Hungarian
    * nHKL = LoadKeyboardLayout("00000809", KLF_ACTIVATE) && English (United Kingdom)

    http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/userinput/keyboardinput/keyboardinputreference/keyboardinputfunctions/loadkeyboardlayout.asp

    (sorry about the link, the forum won't let me add a proper one, it doesn't like Firefox)

  • change language of typing