Xoenix Posted September 11, 2005 Share Posted September 11, 2005 I'm getting the recursion limit exceeded after only a few minutes with my bot. At first it was saying the WinWaitActive command had been exceeded so i removed that but now its teeling me the Sleep (1000) is the problem. Anny suggestions? Link to comment Share on other sites More sharing options...
/dev/null Posted September 11, 2005 Share Posted September 11, 2005 Anny suggestions?Without the code? No.CheersKurt __________________________________________________________(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 More sharing options...
Xoenix Posted September 12, 2005 Author Share Posted September 12, 2005 Forget about the code Sorry expandcollapse popup#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 More sharing options...
/dev/null Posted September 12, 2005 Share Posted September 12, 2005 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....CheersKurt __________________________________________________________(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 More sharing options...
Xoenix Posted September 12, 2005 Author Share Posted September 12, 2005 Ok thanks for the help, I have a slightly different script that has the same problem, Thanks for the help 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