didava
1st September 2013 04:16 UTC
test internet multiLanguage
  Hi this code right?
onInit
>${if} $LANGUAGE == ${LANG_Ger}
   inetc::head /silent "https://www.yahoo.com" "$SYSDIR\test.txt"
   Pop $0 # return value = exit code, "OK" if OK
   ${If} $0 != OK
    GOTO Done
    ${Else}
   Messagebox MB_ICONSTOP|MB_OK "no internet"
    ${EndIf}
${if}$LANGUAGE == ${LANG_ENGLISH}
   inetc::head /silent "https://www.yahoo.com" "$SYSDIR\test.txt"
   Pop $0 # return value = exit code, "OK" if OK
   ${If} $0 != OK
    GOTO Done
    ${Else}
>MessageBox MB_ICONSTOP|MB_OK "no internet"
    ${EndIf}
>ClearErrors
     Done:
>FunctionEnd 
>
Plz Sample code ! :)
      
      thanks.
    
 
    
      didava
      1st September 2013 12:14 UTC
      Professors ؟؟
      I'm waiting ؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟
      :cry::cry::cry::cry::cry::cry::cry:
     
    
      demiller9
      1st September 2013 17:43 UTC
      No, its not right. You should make the indentation of the Else and the EndIf match the If. There may be other errors, too, I've never used inetc. It looks like you have the Ok test backward, saying there is no internet when inetc tells you it worked.
      
      Perhaps you could ask a more detailed question what you think may be wrong in your code, or tell what it isn't doing right. (And a little more patience would help; you posted less than 8 hours ago.)
     
    
      didava
      1st September 2013 23:15 UTC
      Thanks - I found
      
      You can help with this example...
      
      
      forums.winamp.com/showthread.php?p=2960273#post2960273
      
      Thanks Full
     
    
      MSG
      2nd September 2013 12:26 UTC
      
      
        Originally posted by demiller9
        You should make the indentation of the Else and the EndIf match the If.
      
This is complete nonsense. Indentations are ignored by the compiler.