Jump to content

Find colour on window or screen


jimmys
 Share

Recommended Posts

PixelSearch is what you're looking for.

You can search for it in the helpfile or click here.

Please don't link to adminscripteditor.com they don't have the latest syntax/version, if you really need online documentation (and I can't understand why that would be), use the official instead Edited by AdmiralAlkex
Link to comment
Share on other sites

ok i made this but its really slow and the thing its meant to click on is long gone by the time it clicks

HotKeySet("{END}","_exit")

Func _exit()

exit 0

EndFunc

While 1

$pixelsearch = Pixelsearch(0, 0, @Desktopwidth, @DesktopHeight, "0xE72262", 5)

If Not @error Then

MouseClick("left", $pixelsearch[0], $pixelsearch[1] )

Endif

Wend

Link to comment
Share on other sites

I can never remember which numbers to use.

Try Top Left 170, 323 and Bottom Right 802, 793

$pixelsearch = Pixelsearch(170, 323, 802, 793, "0xE72262", 5)

I figured out which numbers to use once and wrote this script:

http://www.autoitscript.com/forum/index.php?showtopic=19722

...that is what I use anytime I need to wrote a PixelSearch line of code.

[size="1"][font="Arial"].[u].[/u][/font][/size]

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...