Sign in to follow this  
Followers 0
lucass001

Several functions in the same time

3 posts in this topic

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?

Share this post


Link to post
Share on other sites



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)


NEWHeader1.png

Share this post


Link to post
Share on other sites

And if I want to click space all the time and do this func in the same time:

Func 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

? :)

Share this post


Link to post
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
Sign in to follow this  
Followers 0