Jump to content

Help With Colors


Rupp16
 Share

Recommended Posts

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

  • Moderators

@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

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...