Sign in to follow this  
Followers 0
13lack13lade

ctrl f, highlight, click highlighted word

5 posts in this topic

#1 ·  Posted (edited)

Hi guys,

so ive had some troubles automating an inhouse app in mozilla due to naming conversion etc etc and i though the easiest way to get around this is to simply ctrl f (find word on page) then left click on that high lighted word.

Is there a simple way to achieve this?

thanks in advance!

Edited by 13lack13lade

Share this post


Link to post
Share on other sites



Could you possibly PixelSearch() for the highlighted word?

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

didnt know such a thing existed! no idea how to use it but ill try and figure it out, thanks for that blackdawn!

i got the colour of the word when its highlighted - 3725432 however how do i left click on the highlighted word? or how do i use the colour to get the mouse coords in order to left click at that location?

Edited by 13lack13lade

Share this post


Link to post
Share on other sites

nevermind got it working, awesome! cheers!!!!!!

Share this post


Link to post
Share on other sites

PixelSearch returns a two element array if it was successful. Which contains the coordinates that you need to pass to a MouseClick. The help file related to PixelSearch will give you a better example. Also, Glad I could be of assistance

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  
Followers 0