Jump to content
Sign in to follow this  

Pixel clicking based on reading text.

Recommended Posts


Hi guys. I'm trying to write a script that automatically clicks text of a certain color. I have made a semi reliable pixel search for my screen resolution, but to transfer the script to a friend, it would be less accurate as there is other text on the screen of the same color, my code is..

func ExecuteScript3() 

$variable3 = PixelSearch(300, 553,1000, 1000,"0x2D0000")

if IsArray($variable3) = True Then
MouseMove($variable3 [0], $variable3 [1],1)

func ExecuteScript4()

So i was wondering, if there is a way to get internet explorer to read the text and if it says "click here for help", then click it, otherwise, skip that item and search for the next item of that color. or is there another method that works better for this?


Share this post

Link to post
Share on other sites

Would be much more reliable if you use the _IE* functions of the IE.au3 UDF. See help file.

You want to find the HTML element containing that text, not the pixel color.


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  


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.