Jump to content

Shade varition help


Recommended Posts

How do i use this code:

PixelSearch ( left, top, right, bottom, color [, shade-variation] [, step]] )

I understand all of it other then the part [, shade-variation] [, step]]. What does it do. Can someone give me a example script about it. Or can someone just edit the top part only ,color [, shade-variation] [, step]] so it could search for different shade variations of the color Blue or REd, doesnt matter which one.

:) For Admins and monitors:

Am not double posting now

Edited by Killzone21
Link to comment
Share on other sites

I may not have understood your question exactly but this explains it fairly well. All taken from the Help file Word for word.

shade-variation [optional] A number between 0 and 255 to indicate the allowed number of shades of variation of the red, green, and blue components of the colour. Default is 0 (exact match).

step [optional] Instead of searching each pixel use a value larger than 1 to skip pixels (for speed). E.g. A value of 2 will only check every other pixel. Default is 1.

; Find a pure red pixel or a red pixel within 10 shades variations of pure red
$coord = PixelSearch( 0, 0, @DesktopWidth, @DesktopHeight, 0xFF0000, 10 )
If Not @error Then
    MouseMove($coord[0],$coord[1],20)
    MsgBox(0, "X and Y are:", $coord[0] & "," & $coord[1])
EndIf

There is always a butthead in the crowd, no matter how hard one tries to keep them out.......Volly

Link to comment
Share on other sites

I may not have understood your question exactly but this explains it fairly well. All taken from the Help file Word for word.

; Find a pure red pixel or a red pixel within 10 shades variations of pure red
$coord = PixelSearch( 0, 0, @DesktopWidth, @DesktopHeight, 0xFF0000, 10 )
If Not @error Then
    MouseMove($coord[0],$coord[1],20)
    MsgBox(0, "X and Y are:", $coord[0] & "," & $coord[1])
EndIf

EXACTLY WAT I WAS LOOKING FOR THXXXXXXXXXXXXX MMMANNNNN.

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