Sign in to follow this  
Followers 0
AlmarM

Undefined Macro's

4 posts in this topic

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.

Global $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...

:D


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.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

So Wat to do so it works ? :D I got v3.3.4.0

Edited by DarkHo

Share this post


Link to post
Share on other sites

Thanks Thanubis. :huggles:

I realy should start reading the "Script Breaking News" :D


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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0