12-27-2014, 03:42 AM
(12-27-2014, 01:46 AM)kojometa Wrote: Okay i worked something out.
Test this and tell me if it works for you!
http://pastebin.com/GQxx4bsG
This is looking for a specific pixelcolor of the sword of the "traintroop" button in the bottom area of bluestacks.
if it finds that color, its gonna click on it.
tell me if it worked because this is the way the bot will detect buttons in the future anyway probably!
The colour hex code u given me don't work but after i changed to mine 0x683C18, it work. Still learning...
$TrainTroop = PixelSearch(0,500,900,700,0x683C18,0,1,$HWnD
May i ask what does 0,500,900,700 mean? want to know the area it searching.
Thanks