The Bytecode Club - Reverse Engineering Forum
ControlClick help - Printable Version

+- The Bytecode Club - Reverse Engineering Forum (https://the.bytecode.club)
+-- Forum: Lobby (https://the.bytecode.club/forumdisplay.php?fid=1)
+--- Forum: Game Cheating, Botting & Reverse Engineering (https://the.bytecode.club/forumdisplay.php?fid=97)
+--- Thread: ControlClick help (/showthread.php?tid=733)



ControlClick help - Cinderblock - 02-11-2015

Can someone explain to me how the bot sends click commands to bluestacks... im pretty new to autoit I cant seem to get it working with my own scripts

-Thanks


RE: ControlClick help - Snarg - 02-11-2015

With this function:
Code:
Func Click($x, $y, $times = 1, $speed = 0)
If $times <> 1 Then
        For $i = 0 To ($times - 1)
            ControlClick("BlueStacks App Player", "", "", "left", "1", $x, $y)
            If _Sleep($speed, False) Then ExitLoop
        Next
    Else
        ControlClick("BlueStacks App Player", "", "", "left", "1", $x, $y)
    EndIf
EndFunc   ;==>Click



RE: ControlClick help - Cinderblock - 02-11-2015

(02-11-2015, 01:33 AM)Snarg Wrote:  With this function:
Code:
Func Click($x, $y, $times = 1, $speed = 0)
If $times <> 1 Then
        For $i = 0 To ($times - 1)
            ControlClick("BlueStacks App Player", "", "", "left", "1", $x, $y)
            If _Sleep($speed, False) Then ExitLoop
        Next
    Else
        ControlClick("BlueStacks App Player", "", "", "left", "1", $x, $y)
    EndIf
EndFunc   ;==>Click

Thank you! I should have known that, I'm dumb