Elzie Posted January 7, 2015 Share Posted January 7, 2015 (edited) What am i missing to get this to work? expandcollapse popup#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 January 7, 2015 by Elzie Link to comment Share on other sites More sharing options...
Exit Posted January 7, 2015 Share Posted January 7, 2015 Would be a good idea to give information about source of nonstandard UDFs change #include "FastFind.au3" to #include "FastFind.au3" ; App: Au3toCmd UDF: _SingleScript() Link to comment Share on other sites More sharing options...
FastFrench Posted January 30, 2015 Share Posted January 30, 2015 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? 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