coucou Posted September 8, 2005 Share Posted September 8, 2005 Hi,I'm looking for installing addons software language. May someone check my scripts here bellow if they are correct???Microsoft BaseLLine 2I've 2 softwares English and French$Lang = RegRead("HKEY_CURRENT_USER\Control Panel\International", "sLanguage") If $Lang = "FRA" Then Run("MBSA2_FR.exe") Else Run("MBSA2_EN.exe") EndifPhotofilre The software is French. The addons is English.Does the condition if "NOT =" or "#" works?$Lang = RegRead("HKEY_CURRENT_USER\Control Panel\International", "sLanguage") if $Lang # "FRA" Then Run("Phtofiltre_EN.exe") Endifor should i use this$Lang = RegRead("HKEY_CURRENT_USER\Control Panel\International", "sLanguage") If $Lang = "FRA" Then Exit Else Run("Phtofiltre_EN.exe") EndifMSN MessengerThe software is English, The addons are English and Spanish$Lang = RegRead("HKEY_CURRENT_USER\Control Panel\International", "sLanguage") Select Case $Lang = "FRA" Run("Msgr_FR.exe") Case $Lang = "SPA" Run("Msgr_SP.exe") EndSelectRegardscoucou Link to comment Share on other sites More sharing options...
MHz Posted September 8, 2005 Share Posted September 8, 2005 Photofilre The software is French. The addons is English.Does the condition if "NOT =" or "#" works?$Lang = RegRead("HKEY_CURRENT_USER\Control Panel\International", "sLanguage") if $Lang # "FRA" Then Run("Phtofiltre_EN.exe") Endifor should i use this$Lang = RegRead("HKEY_CURRENT_USER\Control Panel\International", "sLanguage") If $Lang = "FRA" Then Exit Else Run("Phtofiltre_EN.exe") Endif<{POST_SNAPBACK}>If Not $Lang = "FRA" Then Run("Phtofiltre_EN.exe")Have you considered using the builtin macro @OSLANG instead of reading the registry. Your result should be ok though. Link to comment Share on other sites More sharing options...
coucou Posted September 8, 2005 Author Share Posted September 8, 2005 TNX MHZI'm reading the registry to remeber wher's the registry key for checking.regarding PhotofilreIf Not $Lang = "FRA" Then Run("Phtofiltre_EN.exe") endif as "Else" is not used. It is a problem?What about Microsoft BaseLLine 2 na MSN Messenger scripts??? Are they OKRegardscoucou Link to comment Share on other sites More sharing options...
MHz Posted September 8, 2005 Share Posted September 8, 2005 TNX MHZI'm reading the registry to remeber wher's the registry key for checking.regarding PhotofilreIf Not $Lang = "FRA" Then Run("Phtofiltre_EN.exe") endif as "Else" is not used. It is a problem?What about Microsoft BaseLLine 2 na MSN Messenger scripts??? Are they OKRegardscoucou<{POST_SNAPBACK}>Others seem ok, but your last code is incorrect. See that I have no EndIf !!!You can do thisIf Not $Lang = "FRA" Then Run("Phtofiltre_EN.exe")or you can do thisIf Not $Lang = "FRA" Then Run("Phtofiltre_EN.exe") EndIfBut not what you have done. You would get an EndIf error. Else is not compulsory to use. Link to comment Share on other sites More sharing options...
coucou Posted September 8, 2005 Author Share Posted September 8, 2005 TNX for this enlightening : BTW are you MHz from MSFN forum??? Cheers coucou 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