Jump to content

BeginnerUser

Members
  • Posts

    1
  • Joined

  • Last visited

BeginnerUser's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Hey FastFrench I have question : on your FastFind_Demo.au3, the FFLocalizeChanges crashes on the second loop. Do you have any idea what could be the problem? Even i tried this code and when i press "end" button a second time, it crashes. #include "FastFind.au3" #Include <WinAPI.au3> #include <Misc.au3> HotKeySet("{ESC}", "TheEnd") HotKeySet("{HOME}", "home") HotKeySet("{END}", "end") $i = 1 $dir = "D:\FastFind 2_2\" FFSnapShot(225, 293, 1140, 705, 1) FFSaveJPG($dir & "image1",100,true,225, 293, 1140, 705) while 1 Sleep(10) Wend func end() $i = $i + 1 FFSnapShot(225, 293, 1140, 705, $i) FFSaveJPG($dir & "image" & $i,100,true,225, 293, 1140, 705) $Res = FFLocalizeChanges(1,$i,0) ; Search all differences between two SnapShots if @Error Then Beep(500, 300) Else MsgBox(0, "Mouse x,y:","Change detected : ("&$Res[0]&","&$Res[1]&","&$Res[2]&","&$Res[3]&"), "&$Res[4]&" pixels are different") EndIf Endfunc Func TheEnd() CloseFFDll() ; Unload the DLL, free the memory, close files... Exit Endfunc
×
×
  • Create New...