检索系统中当前设置的所有输入法标识符.
#Include <WinAPIEx.au3>
_WinAPI_GetKeyboardLayoutList ( )
None. |
成功: | 返回输入法区域设置标识符数组, 元素 [0] 包含标识符的数目. |
失败: | 返回 0,并设置@error标志为非 0 值. |
在MSDN中搜索
#Include <APIConstants.au3>
#Include <Array.au3>
#Include <WinAPIEx.au3>
Opt('MustDeclareVars', 1)
Global $Data = _WinAPI_GetKeyboardLayoutList()
If IsArray($Data) Then
For $i = 1 To $Data[0]
$Data[$i] = '0x' & Hex($Data[$i]) & ' (' & _WinAPI_GetLocaleInfo(BitAND($Data[$i], 0xFFFF), $LOCALE_SENGLANGUAGE) & ')'
Next
EndIf
_ArrayDisplay($Data, '_WinAPI_GetKeyboardLayoutList')