Jump to content

How to getpixel in the clipboard ?


Recommended Posts

I think AutoIT should have a command for getpixel in the clipboard:

Example:

--------------------------------------------------------------------------------------

HotKeySet("{F9}", "Get")

While 1

send("{PRINTSCREEN}")

WEnd

$1 = ClipGetImg

$2 = PixelGetColor($1, 10 , 100 )

Func Get ()

MsgBox(0, "X,Y =:", $2[0] & "," & $2[1])

EndFunc

--------------------------------------------------------------------------------------

Or:

--------------------------------------------------------------------------------------

HotKeySet("{F9}", "Get")

$1 = ClipPutImg

$2 = ClipGetImg

$3 = PixelGetColor($2, 10 , 100 )

Func Get ()

MsgBox(0, "X,Y =:", $3[0] & "," & $3[1])

EndFunc

--------------------------------------------------------------------------------------

Link to comment
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
 Share

  • Recently Browsing   0 members

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