Jump to content
Sign in to follow this  
Garrett19212

If x512 y384 = hexcode than

Recommended Posts

Garrett19212

If the spot where the mouse is a specific color than do an action how would i do that

Share this post


Link to post
Share on other sites
buzz44

While 1
   $MousePos = MouseGetPos()
   $DecColour = PixelGetColor ($MousePos[0] ,$MousePos[1])
   $HexColour = "0x" & Hex($DecColour,6)
   If $HexColour = "0x000000" Then
      MsgBox(0,"Colour","The Colour beneath the mouse is black!")
   EndIf
Wend

Edited by burrup

qq

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×