Jump to content
Sign in to follow this  

Imagesearch search for browser images

Recommended Posts

Hello all

Sorry my last forum was not appropriate due to the autoit rules so this time i will ask for general help that i need with imagesearch. Below is my script which is pretty simple.


#include <ImageSearch.au3>
HotKeySet('S', '_Start')

$X = 0
$Y = 0

Func _Start()
  $Search = _ImageSearch('snorlax.bmp', 0, $X, $Y, 0)
Until $Search = 1
MouseMove($X, $Y, 10)

While 1


I took a print screen of my desktop and cropped the recycle bin icon and saved it as bmp in the script folder and then run the script and it worked. When i press the hotkeythe mouse moved to the place of the icon. However when i try the same with any image that i got from the browser by print screen (done it on several different images) and then save as bmp and run the script, the script does nothing. Maybe i need to include a specific code for imagesearch to detect broswer images because whenver i run the script i make sure the image the script is searching for is visible on the desktop. Thank you all for taking your time to read this post and any help will be appreciated. I have also attached the imagesearch.au3 incase anything is wrong with that.


Edited by MahM

Share this post

Link to post
Share on other sites

@MahM you obviously did not read the Forum Rules to which you were linked that closely - particularly the bit about 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 question again.

Share this post

Link to post
Share on other sites
This topic is now closed to further replies.
Sign in to follow this  

  • Create New...