The Bytecode Club
Log inJoin the club
Video Game Reverse Engineering

ControlClick help

Started by Cinderblock · Feb 10, 2015

2 replies60,701 views
Feb 10, 2015#1

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

Feb 10, 2015#2

With this function:

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
Feb 10, 2015#3

With this function:

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

Got something to add?

Log in to post a reply.

Join the conversation