Jump to content

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)
MouseClick("left")
EndIf
EndFunc

func ExecuteScript4()
    
    endfunc

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?

thanks

Link to comment
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.

:huh2:

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...