Info Posted May 2, 2008 Share Posted May 2, 2008 ;Files Check $TrayNumberOfFilesDonwloaded = 0 If FileExists("data\"&"FILE1.exe") = False Then InetGet("MyWebsite.com/FILE1.exe","data\FILE1.exe",1,1) While @InetGetActive $TrayTip = TrayTip("Some files are missing", "Downloading, please wait", 15) WEnd $TrayNumberOfFilesDonwloaded +1 EndIf If FileExists("data\"&"FILE2.exe") = False Then InetGet("MyWebsite.com/FILE2.exe","data\FILE2.exe",1,1) While @InetGetActive $TrayTip = TrayTip("Some files are missing", "Downloading, please wait", 15) WEnd $TrayNumberOfFilesDonwloaded +1 EndIf If $TrayNumberOfFilesDonwloaded = Not 0 Then $TrayTip = TrayTip("Finished downloading!", "Downloaded "&$TrayNumberOfFilesDonwloaded&" files", 2,1) EndIf My problem is with $TrayNumberOfFilesDonwloaded... When I run the script it errors me with the message: "Expected a "=" operator in assignment statement" Help? Link to comment Share on other sites More sharing options...
rasim Posted May 2, 2008 Share Posted May 2, 2008 Syntax errror $TrayNumberOfFilesDonwloaded +1.This correct: $TrayNumberOfFilesDonwloaded += 1 Link to comment Share on other sites More sharing options...
Info Posted May 2, 2008 Author Share Posted May 2, 2008 WORKING! THANKS! BTW, what's syntax? Link to comment Share on other sites More sharing options...
newbiescripter Posted May 2, 2008 Share Posted May 2, 2008 (edited) use this : $TrayNumberOfFilesDonwloaded = $TrayNumberOfFilesDonwloaded +1 ; or more simple $TrayNumberOfFilesDonwloaded += 1 Regards EDIT: sorry. din't see the post above! Edited May 2, 2008 by newbiescripter 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