Jump to content

how can add FastFind library


Hawlong
 Share

Recommended Posts

  • Developers

So you have read through all information in that thread, you didn't bother to add here, were you have found that download and couldn't find any example?

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers

I know where you copied it from as you can see in my first reply. 

28 minutes ago, Hawlong said:

Thanks for your reply i found some example but not work 

So what exactly have you tried and what is not working?

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

this code bro ,

#include "FastFind.au3"
#include <MsgBoxConstants.au3>
$FFhWnd = WinGetHandle("[ACTIVE]")
FFSetWnd($FFhWnd)
FFSnapShot()

Local $aCoords = FFNearestSpot(10, 5,1112,703, 0xED1C24, False)

If Not @error Then
   MouseMove($aCoords [0] , $aCoords[1], 2)
    MsgBox(0, "Coords",  $aCoords[2])
Else
    MsgBox(0, "Coords", "Match not found.")
EndIf

but not work

Link to comment
Share on other sites

10 minutes ago, Hawlong said:

but not work

WHAT doesn't work? You've been asked this before and you still don't give an answer.

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Link to comment
Share on other sites

  • Developers
15 minutes ago, Hawlong said:

any help please ..?

You are on your own as you have not provided enough details which were asked many time now!

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

4 hours ago, Hawlong said:

i try many time but the func search in full screen 

First of all, you told the snapshot function to take a snapshot of the whole screen, try limiting that. Second, your False parameter is in the wrong place, if you don't want it to not take a new snapshot, you need to add the ShadeVariation entry, if the False is for the shadevariation, try using 0 instead. 

FFNearestSpot(10, 5,1112,703, 0xED1C24, 0, False)

Something like that, untested. N.B. I've never used this UDF so I'm going by what's in the help file, which you should have read by now.

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Link to comment
Share on other sites

thanks for your reply , 

 Thanks for the clarification

Please explain to me this function and how it works

FFNearestSpot()

Because I did not understand the example in the help file

how can use this func 

FFNearestSpot()

Like this func

$aCoord = PixelSearch(480, 310, 1440, 930, 0xFF0000, 0)

 

Edited by Hawlong
Link to comment
Share on other sites

My suggestion is to read the help file, run the example script in it, make some changes to the example script and see what the differences are in its operation. As I said, I've never used the UDF so I can't help more than what I posted above.

You can't directly make the FFNearestSpot function work the same as the PixelSearch function, they aren't the same and don't work the same.

I just noticed that the example script in the help file for the FastSearch UDFs is also written wrong. It doesn't have the False in the right place either, so that's probably throwing things off.

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

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