Jump to content

Xoenix

Members
  • Posts

    17
  • Joined

  • Last visited

Xoenix's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Thanks for the fast reply But somethings not right, cause it doesnt appear that the control key is being held down at all... Is there somethin wrong with how I have Send("^{down}") typed?
  2. Hey all Basically what I want to do is have the Ctrl key held down for 5 minutes, then released, then have the z key held down for a further 2.5 minutes and then released. To show I actually attempted before asking for help, heres what I have. Send("^{down}") Sleep(300000) Send("^{up}") Send("{z down}") Sleep(150000) Send("{z up}") Not sure on how to get it to repeat, would it be like Lbl 1 at the top, then Goto 1 at the bottom? Peace
  3. So I have 2 neverending functions... I'll fix em up best I can, and still no luck Ill ask you peeps again Thanks for the help
  4. Well I tried... I think the problem is something with TimerInit and TimerDiff Really appreciate some help here. #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 Overall() Case Else ;;; EndSelect WEnd Exit ;Terminate Func Terminate() Exit 0 EndFunc Func Overall() 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 ) local $time = timerInit() Wend While 1 If MonsterFind() then Attack() $time = timerInit() endIf if timerDiff($time) > 10000 then exitLoop sleep(100) Wend 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) Wend 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) 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) WEnd EndFunc ;Find Monster Func MonsterFind() While 1 $coord2 = PixelSearch( 590, 355, 768, 392, 0x557799, 0, 2 ) While @error = 0 Send ("{ALT}") Sleep (1000) WEnd Wend EndFunc I just have no idea, the guy keeps attacking, never stops. I tried troubleshooting but I don't fully understand what I've got in there, someone shed some light on this?
  5. Well I tried #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 Overall() Case Else ;;; EndSelect WEnd Exit ;Terminate Func Terminate() Exit 0 EndFunc Func Overall() 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 ) local $time = timerInit() Wend While 1 If MonsterFind() then Attack() $time = timerInit() endIf if timerDiff($time) > 10000 then exitLoop sleep(100) Wend 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) Wend 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) 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) WEnd EndFunc ;Find Monster Func MonsterFind() While 1 $coord2 = PixelSearch( 590, 355, 768, 392, 0x557799, 0, 2 ) While @error = 0 Send ("{ALT}") Sleep (1000) WEnd Wend EndFunc I just have no idea, the guy keeps attacking, never stops. I tried troubleshooting but I don't fully understand what I've got in there, someone shed some light on this? Oh and thanks LxP for helping out
  6. Anyone? Or could someone explain how to incorporate TimeInit and TimeDiff? Please? Thanks
  7. Ok I'm sure thats very useful, so thanks Except Im not sure how to incorporate it Here the attack function: ;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) 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) WEnd EndFunc So I'd be forever grateful if you incorporate TimeInit and TimeDiff into it *Begs* Thanks sooo much
  8. Ok thanks for the help, I have a slightly different script that has the same problem, Thanks for the help
  9. 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.
  10. 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?
  11. Some more question for you smart peoples I've made my bot for a game, and the Pixel detection works fine for the monsters, but only the ones that are actually in the area at the beginning of each cycle, like I want it to wait 10 seconds with no monsters anywhere before changing worlds. But at the moment if he stops attacking, a monster walks in and he doesnt attack it, I want him to, any idea how? Also is it possible to set up 2 colours to detect? Like a monster is one colour and another is a diferent colour, and I want to be able to have my guy attack both. Thanks so much for the help Any more details just ask.
  12. I want to make a rectangle and have my script search it for a colour, I can do that its just im not sure where to get the coordinates to put in the script. If its in the Window Info thing can someone point out where? Or how else I can do it. Thanks
  13. Thanks, worked perfectly
  14. This is my code so far. As you can see its an Auto Clicker, very simple. The only problem im have is that after I start it, pressing the off button doesnt stop it, and i need to Ctrl Alt Delete to exit, quite annoying. So a lil help would be awesome
  15. Sorry for double post, but how do I a) addd more buttons make buttons wider to fit more text? Appreciated
×
×
  • Create New...