2

Is it possible to switch input language for another application? Having application's process ID, thread ID, window handle etc.

Ivan G.
  • 5,027
  • 2
  • 37
  • 65

2 Answers2

1

Maybe LoadKeyboardLayout and ActivateKeyboardLayout ?

cedrou
  • 2,780
  • 1
  • 18
  • 23
  • I know about these API, however I'm trying to change input language for _another_ application having HWND only. – Ivan G. Aug 11 '09 at 20:27
  • You can use these functions in a DLL and inject this DLL in the process you want to modify. – cedrou Aug 11 '09 at 20:34
0

I think it's been asked before.

Is there a WinXP/WinXP Embedded API to change Locale (specifically, IME)?

Though it is Windows Embedded, the API is probably the same or similar.

http://msdn.microsoft.com/en-us/library/ms724947(VS.85).aspx

Community
  • 1
  • 1
Leahn Novash
  • 2,861
  • 2
  • 20
  • 18
  • 1
    Sorry but the question is totally different. It shows how to change system-wide locale. I'm trying to switch input language for specific application only. – Ivan G. Aug 11 '09 at 20:26