(12-27-2014, 12:58 AM)kojometa Wrote:(12-27-2014, 12:50 AM)dinobot Wrote: I am also having the same problem of unable to train troop. I have located the barrack, but it seems like it is unable to click Train Troops. I have tried the mouse pointer out of the Bluestacks. Still didnt work.
Is there anything to do with my pausing of Boost after maintenance for barrack?
I have confirmed that my bluestack resolution is set to 860,720 using the reg file provided.
I am using Bluestack latest version 0.9.6.4092.
Code:Func TrainBarrack($x, $y, $z)
GUICtrlSetData($Results, "Func TrainBarrack" & @CRLF, -1)
While 1
If $RunState = False Then
ExitLoop
EndIf
ControlClick ($HWnD, "","", "left", "1", 100*$x_ratio, 100*$y_ratio) ; Making sure no Barrack active
sleep(1000)
ControlClick ($HWnD, "","", "left", "1", $x, $y)
Sleep(3000) ;Long sleep for slow Machines
ControlClick ($HWnD, "","", "left", "1", 600, 620)
Sleep(3000) ;Long sleep for slow Machines
$Pixel = _ColorCheckVariation(Hex(PixelGetColor(377, 546, $HWnD),6), Hex(0xD03838,6),20)
If $Pixel = True Then
$FullArmy = True
EndIf
600,620 is Train Troops?
How to know my Bluestack Mouse Coordination (x,y)? I couldn't find developer options.
Please help. Thank you.
for low level barracks it doesnt work because there are only 3 buttons when you click on barrack.
high level barracks have 5 buttons.
can it be that there are only 3 buttons for you?
I am running on max lvl barrack lvl 10, with 3 button, Info, Boost/Resume, Train Troops.
If the script is written for 5 button, how to re-set the coordinate? How to determine my pixel coordinate (x,y)?