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

How to lock-on a pixel, even if the screen moves?

$
0
0
Hi everyone.

I hope I can get some help on this.

I have a script that does something basic like...

While 1
$PixelLoc = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 0xCOLOR)
If Not @error Then
MouseClick("primary", $PixelLoc[0], $PixelLoc[1], 3, 0)
EndIf
WEnd

Thing is, this scans the screen. But what if I move my mouse to the pixel, and want it to lock on to that pixel and click it, rather than constantly moving my mouse around trying to keep up with the screen's changing position? Is that even possible?

Many thanks.

Viewing all articles
Browse latest Browse all 12506

Trending Articles



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