lolp1 Posted March 29, 2007 Share Posted March 29, 2007 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 Link to comment Share on other sites More sharing options...
Uten Posted March 29, 2007 Share Posted March 29, 2007 Is this all the code? Even if the error is reported in this part of the code the reason might be elsewhere (above). Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
lolp1 Posted March 29, 2007 Author Share Posted March 29, 2007 (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 March 29, 2007 by lolp1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now