#cs ---------------------------------------------------------------------------- AutoIt Version: 3.3.14.2 Author: Knuckles #ce ---------------------------------------------------------------------------- #include #include #include #include #include #include #include ;firefox #include ;logfile #include #include #include Func Message($text, $width, $duration) SplashTextOn("", $text, $width, 30, -1, -1, 33, "Arial", 14) Sleep($duration) SplashOff() EndFunc ;==>Message Func Terminate() Exit 0 EndFunc ;==>Terminate HotKeySet("{ESC}", "Terminate") Opt("WinTitleMatchMode",$OPT_MATCHANY) ;$OPT_MATCHSTART = 1 ; Match the title from the start (default), $OPT_MATCHANY = 2 ; Match any substring in the title, $OPT_MATCHEXACT = 3 ; Match the title exactly, $OPT_MATCHADVANCED = 4 ; Use advanced window matching (deprecated) $a = WinActivate("Facebook") Message($a, 100, 1000) WinWait("Facebook") Global $x=0 Global $y=0 $search = _ImageSearch('search.bmp', 0, $x, $y, 0) ;1... image center returned coordinates If $search = 0 Then Message("not found", 1000, 10000) ElseIf $search = 1 Then Message("found", 1000, 10000) EndIf MouseClick("", $x, $y, 1, 1)