Miliardsto Posted June 9, 2019 Share Posted June 9, 2019 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 expandcollapse popup#include "FastFind.au3" HotKeySet("{F9}", "ShowMe") HotKeySet("{ESC}", "Terminate") $FFhWnd = WinGetHandle("[ACTIVE]") FFSetWnd($FFhWnd) While 1 Sleep(10) WEnd 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]) Else MsgBox(0, "Coords", "Match not found.") EndIf EndFunc 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now