zovudewey Posted July 16, 2014 Posted July 16, 2014 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?
Damein Posted July 16, 2014 Posted July 16, 2014 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: Reveal hidden contents 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
GordonFreeman Posted July 16, 2014 Posted July 16, 2014 PixelChecksum, OCR Reader, Search pixel color,etc xD Frabjous Installation
13lack13lade Posted July 16, 2014 Posted July 16, 2014 (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 July 16, 2014 by 13lack13lade
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