this is one of my scripts for some reason i cant even get it to find the source picture
Code:
#include <ImageSearch.au3>
Global $Paused
HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{ESC}", "Terminate")
While 1
$x1=0
$y1=0
$result = _ImageSearch("fomor.jpg",1,$x1,$y1,100)
if $result=1 Then
MouseMove($x1,$y1,0)
MouseClick("left",$x1,$y1,1,0)
Sleep(2000)
EndIf
WEnd
Func TogglePause()
$Paused = NOT $Paused
While $Paused
sleep(100)
ToolTip('Script is "Paused"',0,0)
WEnd
ToolTip("")
EndFunc
Func Terminate()
Exit 0
EndFunc