Sign in to follow this  
Followers 0
marshallprank

Windows language

6 posts in this topic

hallo,

it is possible to get the windows language with autoIt. I want a method to find the Windows language (English or German). Any idee?

Thanks

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Hi marshallprank,

you can get the OS language with the @OSLang macro.

See the help file for @OSLang values to have a complete list of possibilities.

edit:

English = 0409

German = 0407

Edited by Hannes123

Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler]

Share this post


Link to post
Share on other sites

great thanks

Share this post


Link to post
Share on other sites

You're welcome :unsure:


Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler]

Share this post


Link to post
Share on other sites

It better to use the user preferred language from registory:

$user_language = RegRead('HKEY_CURRENT_USER\Control Panel\Appearance','SchemeLangID')

Share this post


Link to post
Share on other sites

It better to use the user preferred language from registory:

$user_language = RegRead('HKEY_CURRENT_USERControl PanelAppearance','SchemeLangID')

Why is it better to try reading a binary Value out of the registry rather than a Macro that consistently returns the information for you? Reinvent the wheel much?


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0