Sign in to follow this  
Followers 0
lolp1

Error 'Has no matching end FUNC'

3 posts in this topic

For some reason, the func is getting the error it has no matching EndFunc. (When clearly, it does) any ideas?

Func Login()
If $mode = "a" then
MouseClick("left", 404,339)
MouseClick("left", 404,339)
Sleep(300)
ElseIf $mode = "d" then
MouseClick("left", 404,382)
MouseClick("left", 404,382)
$loginscreen = PixelGetColor(325,354)
While $loginscreen <> 1024
;6535902
    Sleep(100)
    $loginscreen = PixelGetColor(325,354)
    Wend
MouseClick("left", 483,364)
MouseClick("left", 483,364)
Send($a)
Sleep(600)
Send("{TAB}")
Sleep(500)
Send($p)
Sleep(600)
Send("{ENTER}")
endif
EndFunc

Share this post


Link to post
Share on other sites



Is this all the code? Even if the error is reported in this part of the code the reason might be elsewhere (above).

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

This is not all the code, but it only happens when I call this func. I'm currently unable to post the rest of the code.

Fixed it, it was in another part, my mistake.

Edited by lolp1

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