Sectie.B Posted January 30, 2005 Share Posted January 30, 2005 hey fellow AutoIT'ers Just wondering if there's an (easy) way to automatically detect the country/regional-settings of a pc. To be more precise, I'm making a script that needs to know what the Decimal Symbol and Digit Grouping Symbol are on the pc it's running on. For ex. in English (Australian) and Dutch (Netherlands) these are used reversed (. <-> ,) and that has quite an impact on my script. I had a hell of a time finding out what the problem was with my script , now a way to circumvent it BTW: I just love this scripting; 15 years ago I gave up on coding... AutoIt got me back in... Sectie.B Link to comment Share on other sites More sharing options...
martin Posted January 30, 2005 Share Posted January 30, 2005 You can use @OSLang to fing the country, but I don't know how the find the decimal character etc, Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
CyberSlug Posted January 31, 2005 Share Posted January 31, 2005 Run regedit and browse to "HKEY_CURRENT_USER\Control Panel\International" $decimalSymbol = RegRead("HKEY_CURRENT_USER\Control Panel\International", "sDecimal") $digitGroupingSymbol = RegRead("HKEY_CURRENT_USER\Control Panel\International", "sThousand") MsgBox(4096, $decimalSymbol, $digitGroupingSymbol) Above should work on Windows XP, at least Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now