Jump to content
Sign in to follow this  
JohnOne

Brainfart

Recommended Posts

JohnOne

I think I'm having brain breakdown here, and hoping someone can spot my schoolboy error.

I'm getting and undeclared variable error

C:\Users\john\Documents\MY Code\AU3\Website\Signup.au3 (15) : ==> Variable used without being declared.:

If $b_FirstRun Then

If ^ ERROR

->02:42:50 AutoIT3.exe ended.rc:1

>Exit code: 1 Time: 4.524

#include <IE.au3>

Global $s_S1 = _CheckForChange()
Global $b_FirstRun = True ; I'm certain the variable is declared here
Global $o_IE = _IECreate()

While 1
    _CheckForChange()
    Sleep(1000 * 60 * 10)
WEnd

Func _CheckForChange()
    $s_SighnUpSource = InetRead("http://www.website.com/signup.php", 1)
    If Not @error Then
        If $b_FirstRun Then
            $b_FirstRun = False
            Return $s_SighnUpSource
        Else
            If Not ($s_SighnUpSource == $s_S1) Then
                _IENavigate($o_IE, "http://www.website.com/signup.php")
                $s_SighnUpSource = BinaryToString($s_SighnUpSource)
                ConsoleWrite($s_SighnUpSource & @CRLF)
                Beep(700, 500)
                Exit
            EndIf
        EndIf
    EndIf
EndFunc   ;==>_CheckForChange

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.