Sign in to follow this  
Followers 0
Elzie

Fast find

3 posts in this topic

#1 ·  Posted (edited)

What am i missing to get this to work?

 
#include <MsgBoxConstants.au3>
#include"FastFind.au3";http://www.autoitscript.com/forum/topic/126430-advanced-pixel-search-library/?p=877543
#RequireAdmin

HotKeySet("^q", "Terminate");===========> quits ( Ctrl + Q )
HotKeySet("^2", "Tar") ;======>checks for change ( Ctrl + T )
HotKeySet("^1", "Shot0")
global const $DEBUG_DEFAULT = 3
AutoItSetOption("WinTitleMatchMode", 4)
Global $title = WinGetTitle("[CLASS:Notepad]", "")
While 1
Sleep(20)
WEnd
func Shot0()
FFSetWnd($title)
FFSetDebugMode($DEBUG_DEFAULT)
FFSnapShot(738, 1040, 750, 1050,0); Take first screen shot
FFSaveBMP(@YEAR & "-" & @MON & "-" & @MDAY & "_" & @HOUR & @MIN & @SEC, false)

EndFunc

Func Tar()
    FFSetWnd($title)
FFSetDebugMode($DEBUG_DEFAULT)

    FFSnapShot(738, 1040, 750, 1050,1); take screen shot # 2  1920*1080
        $Res = FFLocalizeChanges(0, 1) ; Search all differences between two SnapShots
        if @Error Then
            MsgBox($MB_SYSTEMMODAL, " ", "We have a change.", 10)
        Else
            MsgBox($MB_SYSTEMMODAL, " ", "We have no change.", 10)
        EndIf
EndFunc

Func Terminate();===================== Quit ======================
    MsgBox(0, "Quit", "Have A Nice Day")
    CloseFFDll();===> Unload the DLL, free the memory, close files... makes all the cleaning.
    Exit 0
EndFunc   ;==> Terminate

Thanks

Elzie

Edited by Elzie

Share this post


Link to post
Share on other sites



You should better write your question on the former FastFind topic I guess, you would have better chance to get help.

Also, better explain what you do, what you get and what you expected?

I suppose you type ^1 then ^2 several times?
What kind of changes are you tracking on this small area bottom right of the Notepad window?

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  
Followers 0