Jump to content

Recursion Limit Exceeded


Xoenix
 Share

Recommended Posts

Anny suggestions?

Without the code? No.

Cheers

Kurt

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Link to comment
Share on other sites

Forget about the code ;)

Sorry

#include <GuiConstants.au3>

GuiCreate("Smart Bot - Ant Tunnel", 348, 223, 366,266)
$n = GUICtrlCreatePic(@Systemdir & "\oobe\images\wpakey.jpg",0,0, 366,266)
GuiCtrlSetState($n, $GUI_DISABLE)
$Button1 = GuiCtrlCreateButton("About", 80, 72, 57, 33)
$Button2 = GuiCtrlCreateButton("Stop", 200, 72, 57, 33)
$Button3 = GuiCtrlCreateButton("Start", 200, 112, 57, 33)

GuiSetState()
While 1
$msg = GuiGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $msg = $Button1;Channel Button
MsgBox (0, "About", "Version 1.0 - Made by Xoenix - (Copyright) 2005")
Case $msg = $Button2;Stop Button
Terminate()
Case $msg = $Button3;Start Button
Attack()
Case Else
;;;
EndSelect
WEnd
Exit


;Terminate
Func Terminate()
Exit 0
EndFunc


;Attack
Func Attack()
While 1
WinWaitActive("MapleStory")
$coord2 = PixelSearch( 590, 355, 768, 392, 0x557799, 0, 2 )
While @error = 0
Send ("{ALT}")
Sleep (1000)
$coord2 = PixelSearch( 590, 355, 768, 392, 0x557799, 0, 2 )
Wend
Sleep (10000)
ChgChan()
WEnd
EndFunc

;Change Channel
Func ChgChan()
While 1
WinWaitActive("MapleStory")
Send("{ESC}")
Sleep(600)
Send("{ENTER}")
Sleep(600)
Send("{RIGHT}")
Sleep(200)
Send("{ENTER}")
Sleep(5000)
Send ("{RIGHT down}")
Sleep (500)
Send ("{RIGHT up}")
Sleep (500)
Attack()
WEnd
EndFunc

Thanks for the help.

Link to comment
Share on other sites

Forget about the code ;)

Attack() calls ChgChan() and ChgChan() calls Attack(). That will end up in an endless loop, which will eventually reach the recursion limit. You'll have to restructure your code. As don't know what you want to do, I cannot give you any advice here....

Cheers

Kurt

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

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