문제

One of my (very old VB6) programs crashes when the system uses numbers in thousands with a "," (european?) instead of a "." (American?). This is can be changed in windows using the "format" setting (found in the localization settings).

What I want to do is build a script that changes this setting in Windows 7 during the use of the program. I know I probably have to use the Winapi extension in AutoIt, but is there a function for this so I can make a script that calls it and changes this setting and on opening and back on the closing of the program?

Thanks in advance!

도움이 되었습니까?

해결책

Just use RegWrite("HKEY_CURRENT_USER\Control Panel\International", "sThousand", "REG_SZ", ".") to change this setting directly. You can find a good explanation for these values at windowsitpro. Maybe you want to change "sDecimal" as well?

다른 팁

Look at _WinAPI_SetLocaleInfo() and _WinAPI_GetLocaleInfo() in WinAPILocale.au3.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top