Jump to content

Recommended Posts

Posted

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
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

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
×
×
  • Create New...