Jump to content

Search the Community

Showing results for tags 'compair()'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. Usage example. While $t = 0 $coord = PixelSearch($gLeft,$gTop, $gRight, $gBottom, Hex(0x0000FF),10) If Not @error Then $colorck = colorzone($coord[0],$coord[1],10,0,2) If $colorck Then MsgBox(0, "Yes", "Seems to be the same.") EndIf EndIf Function. ; 5x5 compair(500,500,5,5) ;xxxxx o is center and reading point. ;xxxxx compairing all colors in the radius ;xxoxx if color is in range of 5 offset for none int returns in the radius then return true ;xxxxx try and use even numbers for best result ;xxxxx It will round otherwise ; Func colorzone($x1, $y1, $square, $offset, $step = 0) $x2 = $x1 - Int($square / 2) $y2 = $y1 - Int($square / 2) $x3 = $x1 + Int($square / 2) $y4 = $y1 + Int($square / 2) $var = PixelGetColor($x1, $y1) $coord = PixelSearch($x2, $y2, $x3, $y4, $var, $offset, $step) If Not @error Then Return True Else Return False EndIf EndFunc ;==>compair ENJOY!!
×
×
  • Create New...