Macro Name: @MUILang
Returns the code denoting Multi Language if available. See Microsoft OS Language Identifier Constants and Strings for possible values.
Example is provided below:
Returns the code denoting Multi Language if available. See Microsoft OS Language Identifier Constants and Strings for possible values.
Example is provided below:
#include <MsgBoxConstants.au3>
MsgBox($MB_SYSTEMMODAL, "", "The Multi Language Code is: " & @MUILang & @CRLF & _
"The Multi Language Name is: " & _GetMUILang())
;Retrieve the Multi Language name.
Func _GetMUILang()
;Select the required right most four characters to check.
Switch StringRight(@MUILang, 4)
Case "0000"
Return "No Multi Language Support"
Case "0407"
Return "German"
Case "0409"
Return "English"
Case "040A"
Return "Spanish"
Case "040B"
Return "Finnish"
Case "040C"
Return "French"
Case "0410"
Return "Italian"
Case "0411"
Return "Japanese"
Case "0413"
Return "Dutch"
Case "0414"
Return "Norwegian"
Case "0415"
Return "Polish"
Case "0416"
Return "Portuguese"
Case "041D"
Return "Swedish"
Case Else
Return "Other (can't determine with @MUILang directly)"
EndSwitch
EndFunc ;==>_GetMUILang
MsgBox($MB_SYSTEMMODAL, "", "The Multi Language Code is: " & @MUILang & @CRLF & _
"The Multi Language Name is: " & _GetMUILang())
;Retrieve the Multi Language name.
Func _GetMUILang()
;Select the required right most four characters to check.
Switch StringRight(@MUILang, 4)
Case "0000"
Return "No Multi Language Support"
Case "0407"
Return "German"
Case "0409"
Return "English"
Case "040A"
Return "Spanish"
Case "040B"
Return "Finnish"
Case "040C"
Return "French"
Case "0410"
Return "Italian"
Case "0411"
Return "Japanese"
Case "0413"
Return "Dutch"
Case "0414"
Return "Norwegian"
Case "0415"
Return "Polish"
Case "0416"
Return "Portuguese"
Case "041D"
Return "Swedish"
Case Else
Return "Other (can't determine with @MUILang directly)"
EndSwitch
EndFunc ;==>_GetMUILang
- Microsoft OS Language Identifier Constants and Strings
- AutoIt - Get Operating System
- AutoIt - Get OS Service Pack
- AutoIt - Get Computer Name
- AutoIt - Get OS Language
- AutoIt - Get Keyboard Layout
- AutoIt - Get currently logged on user name
- AutoIt - Get CPU Architecture - x86 (32 Bit) Or x64 (64 Bit)
- AutoIt - Get OS Architecture - x86 (32 Bit) Or x64 (64 Bit)
- AutoIt - Get Display Height (Vertical Resolution) and Width (Horizontal Resolution)
- AutoIt - Get Display Depth (Color quality)
- AutoIt - Get Display Refresh Rate
- AutoIt - Get IP Address
Interesting? Share and Let Others Know.
Post a Comment