niwi
Joined: 27 Feb 2005 Posts: 139 Location: Heidelberg, Germany
|
Posted: Fri Jan 09, 2009 7:41 am Post subject: Variable A_GuiLanguage |
|
|
Hi Chris,
what about a variable for the GUI language which might be different to the system language (stored already in A_Language) on a Window MUI system.
The variable could be read here, if it exists:
http://technet.microsoft.com/en-us/library/cc785695.aspx
At the moment I use this piece of code:
| Code: | RegRead, GUI_Language, HKEY_CURRENT_USER, Control Panel\Desktop, MultiUILanguageId
If ErrorLevel
RegRead, GUI_Language, HKEY_CURRENT_USER, Control Panel\International, Locale
StringRight, GUI_Language, GUI_Language, 4 ; the string has 8 characters
MsgBox, GUI_Language: %GUI_Language%
|
Best regards, Nils. |
|