Jump to content

Error: Recursion Level exceed


Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...