I'm trying to write a script will search for a specific string on a webpage, and if the string is not found, the mouse left clicks once, repeated until the string is found. So far, I've tried to use WinGetText and search within its output, but I can't seem to be able to get the function to retrieve the contents of the page. Another solution I've seen on the forums is to have a script select all and copy the webpage, then search for the string within the clipboard, but I can't get that to work either.
The purpose of the script is an automatic reroller for an online text based RPG called Sryth, in which you can click a reroll button until you get the character stats you want. The specific string I'm searching for is either 'Avg. Stat: 20' or 'Avg. Stat: 19'.
Any help would be appreciated, will try to give more information if needed.
Search for string on webpage, click if non-existent Topic is solved
Re: Search for string on webpage, click if non-existent Topic is solved
I think AHK is the wrong Language for this, trysuomy wrote:I'm trying to write a script will search for a specific string on a webpage, and if the string is not found, the mouse left clicks once, repeated until the string is found. So far, I've tried to use WinGetText and search within its output, but I can't seem to be able to get the function to retrieve the contents of the page. Another solution I've seen on the forums is to have a script select all and copy the webpage, then search for the string within the clipboard, but I can't get that to work either.
The purpose of the script is an automatic reroller for an online text based RPG called Sryth, in which you can click a reroll button until you get the character stats you want. The specific string I'm searching for is either 'Avg. Stat: 20' or 'Avg. Stat: 19'.
Any help would be appreciated, will try to give more information if needed.
* Python
* C++
* C#
* Java Script
Or, or, or..
Who is online
Users browsing this forum: No registered users and 91 guests