Funktionreferenz


_WinAPI_GetKeyboardLayout


Retrieves the active input locale identifier for the specified window

#include <WinAPISys.au3>
_WinAPI_GetKeyboardLayout ( [$hWnd = 0] )

Parameter

$hWnd [optional] Handle to the window to retrieve the input locale identifier (Default: running process).

Rückgabewert

Success: The input locale identifier.
Failure: 0.

Bemerkungen

None.

Verwandte Funktionen

_WinAPI_GetKeyboardLayoutLocale

Siehe auch

Suche nach GetKeyboardLayout in der MSDN Bibliothek.

Beispiel

#include <WinAPIConv.au3>
#include <WinAPILocale.au3>
#include <WinAPISys.au3>

Local $hKeyboardLayout = _WinAPI_GetKeyboardLayout()
Local $sStr = $hKeyboardLayout & ' (' & _WinAPI_GetLocaleInfo(_WinAPI_HiWord($hKeyboardLayout), $LOCALE_SENGLANGUAGE) & ')'

MsgBox(0, "GetKeyboardLayout - v(" & @AutoItVersion & ")", $sStr)