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

Clicking within an image

$
0
0
Im trying to make a bot to click an image at a certain spot currently right now it will find the image and click on it but not in a certain location. Here is the code im using
While 1
Global $iX, $iY
$search = _WaitForImageSearch("C:\Users\joey\Desktop\autoit stuff\test\12.png", 60, 1, $iX, $iY, 0)
If $search = 1 Then
Sleep(1000)
MouseClick("left", $iX, $iY, 1, 1)
Sleep(500)
ExitLoop
EndIf
WEnd

the image (12.png) is 335 x 83 px and i need it to click at 302 x 69

Any suggestions?

Viewing all articles
Browse latest Browse all 12506

Trending Articles



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