AlmarM Posted February 4, 2010 Posted February 4, 2010 Hiya! I was using 3.3.3.0 and Macro's like @INetGetBytesActive did work for me. I just installed 3.3.4.0 and it doesn't work anymore. expandcollapse popupGlobal $GUI Global $Link = "http://www.autoitscript.com/autoit3/files/beta/update.dat" $GUI = GUICreate("Loading...", 220, 60) GUICtrlCreateLabel("Loading files, please wait...", 10, 10) $Progress = GUICtrlCreateProgress(10, 30, 200) $Process = GUICtrlCreateLabel("0%", 185, 10, 25, 15) GUISetState(@SW_SHOW, $GUI) _Download($Link, @TempDir & "\update.dat", $Progress, $Process) Func _Download($sUrl, $sTarget, $vProgress, $vLabel) $Size = INetGetSize($sUrl) INetGet($sUrl, $sTarget, 1, 1) While @INetGetActive GUICtrlSetData($vProgress, Ceiling((@INetGetBytesRead / $Size) * 100)) GUICtrlSetData($vLabel, Ceiling((@INetGetBytesRead / $Size) * 100) & "%") WEnd Sleep(1500) GUIDelete($GUI) EndFunc Sleep(1000) ; // Your script here Global $Path = @TempDir & "\update.dat" $AutoItv3_Read = IniRead($Path, "AutoIt", "Version", "undefined") If $AutoItv3_Read > @AutoItVersion Then MsgBox(64, "Update", "There is an update available!") ElseIf $AutoItv3_Read == @AutoItVersion Then MsgBox(64, "Update", "You have the lastest update!") EndIf Exit This is the script im using, it would update my progress bar in 3.3.3.0. Now it just skips it... Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.
DarkHo Posted February 4, 2010 Posted February 4, 2010 (edited) So Wat to do so it works ? I got v3.3.4.0 Edited February 4, 2010 by DarkHo
Mat Posted February 4, 2010 Posted February 4, 2010 So Wat to do so it works ? I got v3.3.4.0It won't. Use InetGetInfo instead. AutoIt Project Listing
AlmarM Posted February 4, 2010 Author Posted February 4, 2010 Thanks Thanubis. I realy should start reading the "Script Breaking News" Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.
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