Funktionreferenz


_WinAPI_GetKeyboardLayout

Beschreibung anzeigen in

Ruft die Kennung der aktiven Eingabesprachumgebung für das angegebene Fenster ab

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

Parameter

$hWnd [optional] Handle zum Fenster, um die Kennung der Eingabelokalisierung abzurufen (Standard: laufender Prozess).

Rückgabewert

Erfolg: Die Kennung der Eingabe-Locale.
Fehler: 0.

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)