Jump to content
NickWON

ImageSearch Help

Recommended Posts

NickWON

Hello , im Nick ;-)

I just registered here because i recently started to try out some autoit scripting. 

 

So ... i tryed myself getting into FF.au3 .. and also used all the necessary extentions .. Mozrepl , Firebug , Firepath ... but i couldnt realy get into it , firepath and bug didnt give me the informations that i needed , watched guides , tutorials . but it seems like im to newbie for that . 

Ok. Next try ... Image Search ... atleast with my understanding I have done everything right . but i am still watching with the eyes of an newbie . 

Maybe somebody of you smart guys can explain me what went wrong with my code . It should find bmp1 , click it . Find bmp 2 , click it . And repeat . But its not doing anything . dont even give me an error text .

Please stay friendly . Its my first project and im totally overwelmed , some guiding would be very helpfull . Love and peace , looking for a nice conversation with you guys . 

 

#include <ImageSearch.au3>


Func   ; click bmp 1

   $search = _ImageSearch("bmp1.bmp",1,$x,$y,0)

   If $search = 1 Then
      MouseClick("LEFT",$x,$y,1)
   Else
     MsgBox("","Error 1","Image not Found")
  EndIf

  EndFunc

  Func ;click bmp 2

     $search = _ImageSearch("bmp2.bmp",1,$x,$y,0)

     If $search = 1 Then
      MouseClick("LEFT",$x,$y,1)
   Else
     MsgBox("","Error 1","Image not Found")
  EndIf

  EndFunc

 

Share this post


Link to post
Share on other sites
JLogan3o13

@NickWON you apparently didn't bother to actually READ the forum rules to which you were pointed, or you would have seen this:

Quote

Do not repost the same question if the previous thread has been locked - particularly if you merely reword the question to get around one of the prohibitions listed above.

Do not post this a third time.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.