Search Chrome for a string (and BREAK if no result)

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
C3Man
Posts: 1
Joined: 27 Mar 2017, 02:36

Search Chrome for a string (and BREAK if no result)

27 Mar 2017, 04:00

Hey! I've been working on a script which so far works great but there is one step unfinished and I don't know how to do this.

After searching a (very long) homepage in Chrome for a string (ctrl+f) I want to do this:

If no result, BREAK
If result, move mouse to a button at (x,y) and click

Suggestions for making BREAK when 0 search results:
- Take samples of the color value of a few coordinates before AND after the search and compare them. If they are the identical, that means you got no results (since page didn't scroll down to your result).
- Results in Chrome are by default marked with an orange color. Maybe I can somehow search if that exact orange color is presented anywhere on the screen.

I am SO thankful if I can solve this, solving this would spare me at least 30 hours of monotonous work. Thanks! :)

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], iamasink and 323 guests