#include #include $fileA = @ScriptDir & "\nameOf.png" $fileB = @ScriptDir & "\nameOf.png" $fileC = @ScriptDir & "\nameOf.png" $fileD = @ScriptDir & "\nameOf.png" $fileE = @ScriptDir & "\nameOf.png" $fileF = @ScriptDir & "\nameOf.png" _GDIPlus_Startup() $hImageA =_GDIPlus_ImageLoadFromFile($fileA) $hBitmapA = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hImageA) $hImageB =_GDIPlus_ImageLoadFromFile($fileB) $hBitmapB = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hImageB) $hImageC =_GDIPlus_ImageLoadFromFile($fileC) $hBitmapC = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hImageC) $hImageD =_GDIPlus_ImageLoadFromFile($fileD) $hBitmapD = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hImageD) $hImageF =_GDIPlus_ImageLoadFromFile($fileF) $hBitmapF = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hImageF) $hImageE =_GDIPlus_ImageLoadFromFile($fileE) $hBitmapE = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hImageE) $x = 0 $y = 0 $result = _ImageSearch($hBitmapA, 1, $x, $y, 20, 0) If $result > 0 Then MouseMove($x, $y) MouseClick("Left",$x, $y,2) Else MsgBox(1,"Error","Could not find image") EndIf Sleep(10000) $result = _ImageSearch($hBitmapB, 1, $x, $y, 20, 0) If $result > 0 Then MouseMove($x, $y) MouseClick("Left",$x, $y,2) Else MsgBox(1,"Error","Could not find image") EndIf Sleep(10000) $result = _ImageSearch($hBitmapC, 1, $x, $y, 20, 0) If $result > 0 Then MouseMove($x, $y) MouseClick("Left",$x, $y,1) Else MsgBox(1,"Error","Could not find image") EndIf $result = _ImageSearch($hBitmapD, 1, $x, $y, 20, 0) If $result > 0 Then MouseMove($x, $y) MouseClick("Left",$x, $y,1) Else MsgBox(1,"Error","Could not find image") EndIf Sleep(20000) $result = _ImageSearch($hBitmapF, 1, $x, $y, 20, 0) If $result > 0 Then While $result > 0 Sleep(1000) Else MsgBox(1,"Error","Could not find image") WEnd EndIf $result = _ImageSearch($hBitmapE, 1, $x, $y, 20, 50) If $result > 0 Then MouseMove($x, $y) MouseClick("Left",$x, $y,1) Else MsgBox(1,"Error","Could not find image") EndIf _GDIPlus_ImageDispose($hImageA) _GDIPlus_ImageDispose($hImageB) _GDIPlus_ImageDispose($hImageC) _GDIPlus_ImageDispose($hImageD) _GDIPlus_ImageDispose($hImageE) _GDIPlus_ImageDispose($hImageF) _GDIPlus_Shutdown()