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

image search

$
0
0

Is it possible to compare the screen display to the image I save. The image contain the program - example TeamViewer with the OK button. The thing is; teamviewer doesn't appear at the same location (x, y position) so coordinates are useless. So to compare the image to screen and if find the OK button, to click on it.

 

If the tutorial is already out there, please link or point me to the right direction. Perhaps a quick example would be much helpful.

 

thanks,

 

Edit:

AutoIt         
#include<ImageSearch.au3> HotKeySet("[NUMPAD2]","start") HotKeySet("[NUMPAD3]","quit") $x1 = 0 $y1 = 0 while 1     sleep(1) WEnd func start() while 1     $result=_ImageSearch("Button.png",1,$x1, $y1, 0)         if $result=1 Then             MouseClick("LEFT", $x1, $y1)         EndIf WEnd EndFunc Func quit()     exit 0 EndFunc

For some reason it doesn't work even if the dll is within the include folder or with the image.

 

[edit]

T_T, comes to a search I found out that 64bit doesn't work.


Viewing all articles
Browse latest Browse all 12506

Trending Articles



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