troubleshooting Question

Get Keyboard Layout Name Of Active Window

Avatar of Mortaza Doulaty
Mortaza DoulatyFlag for United Kingdom of Great Britain and Northern Ireland asked on
Visual Basic Classic
3 Comments1 Solution2807 ViewsLast Modified:
I need to get the layout name of active window.
Calling GetKeyboardLayoutName API from my app, only gets the layout name of the app itself.
As far as I know, every open window, can have it's own active layout. So changing keyboard layout from one windows, does not make any change to the code returned from GetKeyboardLayoutName function in my app, but when in my app's active windows, I change keyboard layout, it catches the layout change code.

All I need if to find the current keyboard layout name (for example windows returns 409 for English keyboard) of the current active window.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros