Jump to content

Something messing up my EndFunc


Recommended Posts

I have the following code:

_IELinkClickByIndex ($browser2,8)
                
        done()

Func done()
GUICreate("GUI",300, 100, 15, 15)
GUISetState()
GUISetBkColor(0x00FF00)
GUISetFont(42)
GUICtrlCreateLabel('Done!', 75,20)


While 1
        Switch GUIGetMsg()
            
            Case $GUI_EVENT_CLOSE
                ExitLoop
            
        EndSwitch
    WEnd ; Continue loop untill window is closed
    Exit
EndFunc

        Sleep(2000)

All of this is within another func just fyi. When I run it, it says: "Func" statement has no matching "EndFunc".:

Func done()

What did I do wrong?

Link to comment
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
 Share

  • Recently Browsing   0 members

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