.bmp works best
Send("{ALTDOWN}")
$x1=0
$y1=0
$result = _ImageSearch("site.BMP",1,$x1,$y1,60)
if $result=1 Then
$x3=0
$y3=0
MouseMove($x3,$y3)
MouseClick("left")
sleep(3000)
MouseClick("left",$x1,$y1,3)
Sleep(15000)
EndIf
$x2=0
$y2=0
$result2 = _ImageSearch("ore.BMP",1,$x2,$y2,80)
If $result2=1 Then
MouseClick("left",$x2,$y2)
sleep(1000)
MouseClickDrag ("Right",1000, 500,1025,500 )
EndIf
WEnd
#include <ImageSearch.au3>
Global $Paused
HotKeySet("{Pause}", "TogglePause")
HotKeySet("{ESC}", "Terminate")
MsgBox(0,"Metallurgy Bot","Click OK and then bring up the Mabinogi window")
sleep(2000)
Send("{ALTDOWN}")
While 1
$x=0
$y=0
$result = _ImageSearch("site.BMP",1,$x,$y,60)
if $result=1 Then
Send("{ALTUP}")
Send("{F9}")
sleep(3000)
MouseClick("left",$x,$y,3)
Sleep(15000)
Send("{ALTDOWN}")
$x=0
$y=0
$result = 0
$result = _ImageSearch("ore.BMP",1,$x,$y,120)
If $result=1 Then
MouseClick("left",$x,$y)
sleep(3000)
EndIf
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