Jump to content
Sign in to follow this  

FastFind wrong positions

Recommended Posts

Im trying to use FastFind but it still givin me a wrong coordinates. My red color from function is in the middle of the screen and the mouse go to the left of screen. How to search for that. My recnangle to search look like this in attachment

#include "FastFind.au3"

HotKeySet("{F9}", "ShowMe")
HotKeySet("{ESC}", "Terminate")

$FFhWnd = WinGetHandle("[ACTIVE]")

While 1

Func ShowMe()

    $color = 0x00EE0000
    $color1 = 0x00FA0000

    $sVariation = 20

    Local $aCoords = FFBestSpot(32, 30, 70, 500, 500, 0x00EE0000, $sVariation)

    ;Local $aCoords = FFNearestSpot(32, 30, 600, 600, 0x00FA0000,$sVariation)

    If Not @error Then
        ;MsgBox(0, "Coords", $aCoords[0] & ", " & $aCoords[1])
        ConsoleWrite("Coords" & $aCoords[0] & " " & $aCoords[1] & " Found pixels in coolor = " & $aCoords[2] & @LF )
        MouseMove($aCoords[0], $aCoords[1])
        MsgBox(0, "Coords", "Match not found.")


Func Terminate()
    Exit 0
EndFunc   ;==>Terminate


In that file are functions widely described. https://github.com/FastFrench/FastFind/blob/master/FF help/Examples/HelpFile/FastFind.au3


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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...