Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Please help for imagesearch about .. else code problem

$
0
0
;click this image if it isn't find above images... I have problem here :/ How can i do it ? I have else statement error...

I have problem on "else" code...

AutoIt         
 #include <ImageSearch.au3> HotKeySet("{ESC}", "Terminate") $x = 1000 $y = 100 While 1           ;right 1          $res1 = _imagesearchArea('pictures1right.png', 1, 469, 633, 626, 739, $x, $y, 0)       If $res1 = 1 Then          MouseMove(620,489,3)          MouseClick ("left")       EndIf           ;left 1            $res1 = _imagesearchArea('pictures1left.png',1, 1300, 631, 1480, 729, $x, $y, 0)       If $res1 = 1 Then          MouseMove(1288, 499,3)          MouseClick ("left")       EndIf             ;right 2          $res1 = _imagesearchArea('pictures2right.png', 1, 469, 633, 626, 739, $x, $y, 0)       If $res1 = 1 Then          MouseMove(620,489,3)          MouseClick ("left")       EndIf           ;left 2            $res1 = _imagesearchArea('pictures2left.png',1, 1300, 631, 1480, 729, $x, $y, 0)       If $res1 = 1 Then          MouseMove(1288, 499,3)          MouseClick ("left")       EndIf               ELSE ;click this image if it isn't find above images... I have problem here :/ How can i do it ? I have else statement error...             $res1 = _imagesearchArea('change.png',1, 805, 679, 1166, 805, $x, $y, 0)       If $res1 = 1 Then          MouseMove($x, $y,3)          MouseClick ("left")                   WEnd       Func Terminate()          Exit 0          EndFunc

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>