Sign in to follow this  
Followers 0
pereketek

Error: Recursion Level exceed

6 posts in this topic

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?

Share this post


Link to post
Share on other sites



Lessen your recurssions? Maybe try not using recurssoin in your script and resort to a looping or stack-based solution?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

show code and we can help

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#6 ·  Posted (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 by omikron48

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