pereketek Posted March 27, 2010 Posted March 27, 2010 When I run my script, its run well. But after some times, a mesage box appears. it said error recursion level limit exceed how to fix it?
omikron48 Posted March 27, 2010 Posted March 27, 2010 Lessen your recurssions? Maybe try not using recurssoin in your script and resort to a looping or stack-based solution?
pereketek Posted March 27, 2010 Author Posted March 27, 2010 Lessen your recurssions? Maybe try not using recurssoin in your script and resort to a looping or stack-based solution?resort to a looping or stack-based solution < I don't understand about this
pereketek Posted March 27, 2010 Author Posted March 27, 2010 show code and we can help 8) WinWaitActive("Untitled - Notepad") PixelSearch( 451, 46, 451, 46, 0xEA39A6 ) If Not @error Then Send(34) cari() EndIf Func cari() PixelSearch( 451, 46, 451, 46, 0xEA39A6 ) If Not @error Then serang() EndIf Sleep("100") Send("{TAB}") cari() EndFunc Func serang() If Not @error Then Send(34) cari() EndIf EndFunc Sleep("100") Send("{TAB}") If Not @error Then serang() EndIf
omikron48 Posted March 27, 2010 Posted March 27, 2010 (edited) LOL XD This is funny! Created within the same hour too! Anything look familiar? Recursion level has been exceeded - AutoIt will quit to prevent stack overflow.: why? Here is my script:WinWaitActive("LUNA Online") HotKeySet("{F4}", "Terminate") If PixelGetColor(415, 36) = 0 Then Return Func search() PixelSearch( 451, 46, 451, 46, 0xEA39A6 ) If Not @error Then Send(34) search() EndIf Sleep("100") Send("{TAB}") search() EndFunc Func attack() If Not @error Then Send(34) search() EndIf EndFunc If Not @error Then attack() EndIf Func terminate() Exit 0 EndFunc thanks Edited March 27, 2010 by omikron48
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