Jump to content

Recommended Posts

Posted

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.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...