I am trying to use dllcall to get the current keyboard layout, but for some reason it always returns english (0409) this is the code: $user32dll = DllOpen("user32.dll")
$x = DllCall($user32dll,"long","GetKeyboardLayout","int",0)
MsgBox(0,"",hex($x[0],4))
DllClose($user32dll) what I thought was maybe this, the parameter I am supposed to give is a thread identifier or 0 for the current thread, anyone have any thoughts about this? Link to MSDN - GetKeyboardLayout