Sign in to follow this  
Followers 0
zovudewey

After find text in Chrome using scripted CTRL + F, how to I find it's location & click it?

4 posts in this topic

Hey guys!

I need to click on a text that is not presented as a link, it looks like this:

<li><a id="send-message">Send Message</a></li>

The thing is, if it was a regular link, I can easily script sending keys to find the text and then send an enter key.

But it doesn't work, the only way to activate it is by clicking with the mouse.

Anyway I can send a click to the position it's found on? The only solution I can think of is using a software to compare 2 screenshots, one before selecting the text "Send message", the other inmediatedly after and seeing where most of the difference in the image is.

Any cleaner solution?

Share this post


Link to post
Share on other sites



Have you looked into the UDF for Chrome?

I see that in its features it has:

_ChromeInputClickByName($objname, $index = 0, $timeout = 5)
_ChromeInputClickByType($type, $timeout = 5)

Which sounds like what you're attempting to do.

Full documenation: 


MCR.jpg?t=1286371579

Most recent sig. I made

Quick Launcher W/ Profiles Topic Movie Database Topic & Website | LiveStreamer Pro Website | YouTube Stand-Alone Playlist Manager: Topic | Weather Desktop Widget: Topic | Flash Memory Game: Topic | Volume Control With Mouse / iTunes Hotkeys: Topic | Weather program: Topic | Paws & Tales radio drama podcast mini-player: Topic | Quick Math Calculations: Topic

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Ctrl f then click on the found text? - this function will click on the highlighted text you search for using ctrl F... This is setup to use the standard green highlight colour as my firefox not sure what version, think its latest firefox..

func highlightclick()
$coord = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 3725432)
If Not @error Then
    MouseClick("left", $coord[0], $coord[1], 1, 0)
 EndIf
 EndFunc


;script would be something like
send("^f")
sleep(500)
send("Send Message")
sleep(500)
highlightclick()
Edited by 13lack13lade

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