Sign in to follow this  
Followers 0
Garrett19212

If x512 y384 = hexcode than

2 posts in this topic

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

#2 ·  Posted (edited)

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

[u]Old Projects:[/u]A3MORGB2Hex[u]Old Functions:[/u]_TimeAdd/_TimeSub_AddComma_BubbleSort _RippleSort "He who does not understand your silence will probably not understand your words." - Elbert Hubbard.

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  
Followers 0