Jump to content

Recommended Posts

Posted

DllCall('user32.dll', 'HKL', 'LoadKeyboardLayout', 'LPCTSTR',"00000409", 'UINT', 'KLF_ACTIVATE')

for U.S. English has a language identifier of 0x0409, so the primary U.S. English layout is named "00000409"

Posted (edited)

Global Const $KLF_ACTIVATE = 1

DllCall('user32.dll', 'long', 'LoadKeyboardLayout', 'str', '00000409', 'uint', $KLF_ACTIVATE)

or use _WinAPI_SetKeyboardLayout() from the WinAPIEx.au3

Edited by Yashied

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
×
×
  • Create New...