13lack13lade Posted February 9, 2014 Share Posted February 9, 2014 (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 February 9, 2014 by 13lack13lade Link to comment Share on other sites More sharing options...
BlackDawn187 Posted February 10, 2014 Share Posted February 10, 2014 Could you possibly PixelSearch() for the highlighted word? Link to comment Share on other sites More sharing options...
13lack13lade Posted February 10, 2014 Author Share Posted February 10, 2014 (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 February 10, 2014 by 13lack13lade Link to comment Share on other sites More sharing options...
13lack13lade Posted February 10, 2014 Author Share Posted February 10, 2014 nevermind got it working, awesome! cheers!!!!!! Link to comment Share on other sites More sharing options...
BlackDawn187 Posted February 10, 2014 Share Posted February 10, 2014 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now