lucass001 Posted May 23, 2009 Share Posted May 23, 2009 Can my bot do two or more functions in the same time? I want to do this: Func ap () While 1 $var = 1 While $var = 1 Send ("{SPACE}") WEnd Sleep(100) WEnd EndFuncoÝ÷ Ø Ý¶¬jëh×6Func right () While 1 $var = 1 While $var = 1 $delay2 = GUICtrlRead ($delay1) Opt("MouseClickDownDelay", 100) Opt("MouseClickDelay", $delay2) MouseClick ("Right") WEnd Sleep(100) WEnd EndFunc In the same time. Is this possible? Link to comment Share on other sites More sharing options...
Valuater Posted May 23, 2009 Share Posted May 23, 2009 based on the code above, this should do the same thing you want within milliseconds of "at the same time" Opt("MouseClickDownDelay", 100) While 1 Send ("{SPACE}") $delay2 = GUICtrlRead ($delay1) Opt("MouseClickDelay", $delay2) MouseClick ("Right") Sleep(100) WEnd 8) Link to comment Share on other sites More sharing options...
lucass001 Posted May 23, 2009 Author Share Posted May 23, 2009 And if I want to click space all the time and do this func in the same time: expandcollapse popupFunc buff () While 1 $var = 1 While $var = 1 Opt("MouseClickDownDelay", 400) Opt("SendKeyDownDelay", 400) ;Pierwsza osoba $heal2 = GUICtrlRead($heal) $defence2 = GUICtrlRead($defence) $damage2 = GUICtrlRead($damage) MouseMove(1285, 200, 1) Sleep(200) Send($heal2) Sleep(200) MouseClick("Right") Sleep(200) Send($defence2) Sleep(200) MouseClick("Right") Sleep(200) Send($damage2) Sleep(200) MouseClick("Right") Sleep(400) ;Druga osoba MouseMove(1285, 220, 1) Sleep(200) Send($heal2) Sleep(200) MouseClick("Right") Sleep(200) Send($defence2) Sleep(200) MouseClick("Right") Sleep(200) Send($damage2) Sleep(200) MouseClick("Right") Sleep(400) ;Trzecia osoba MouseMove(1285, 260, 1) Sleep(200) Send($heal2) Sleep(200) MouseClick("Right") Sleep(200) Send($defence2) Sleep(200) MouseClick("Right") Sleep(200) Send($damage2) Sleep(200) MouseClick("Right") Sleep(400) ;Czwarta osoba MouseMove(1285, 310, 1) Sleep(200) Send($heal2) Sleep(200) MouseClick("Right") Sleep(200) Send($defence2) Sleep(200) MouseClick("Right") Sleep(200) Send($damage2) Sleep(200) MouseClick("Right") Sleep(400) ;Piąta osoba MouseMove(1285, 340, 1) Sleep(200) Send($heal2) Sleep(200) MouseClick("Right") Sleep(200) Send($defence2) Sleep(200) MouseClick("Right") Sleep(200) Send($damage2) Sleep(200) MouseClick("Right") Sleep(400) $buffdelay2 = GUICtrlRead($buffdelay) Sleep($buffdelay2) WEnd Sleep(100) WEnd EndFunc ? 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