Rupp16 Posted December 21, 2015 Share Posted December 21, 2015 WinActivate("Bluestacks App Player") Func Buying_Players ($MConPlayerx, $MConPlayerY) ;Mouse click coordinate for coorosponding slots MouseClick( "left" , $MConPlayerx, $MConPlayery) sleep(3000) ;If the top of the screen is gray click "buy now" if PixelGetColor (930, 150) = 0xECECEC Then ;finds pixel color and runs it against the other color Sleep(1000) MouseClick( "Left", 715, 970); clicks buy now Sleep(1750) MouseClick( "Left", 955, 740,"", 25); hits ok on error message MouseClick( "Left", 715, 981,"", 25); clicks continue ;if there is no gray area item is not available to buy, move on to next item EndIf EndFunc Buying_Players(620, 950) Buying_Players(6, 870)When I run this code it doesn't run the if part only moves on to the next function, even though the if part is fulfilled. I have checked the color and i know that it is correct. Will someone help me please Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted December 21, 2015 Moderators Share Posted December 21, 2015 @Rupp16, you are 3 and 0. 3 posts and 3 locked. Not to mention we do not allow multiple posting on the same subject here. Read the forum rules before posting again, or your tenure here with be short lived. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Recommended Posts