I have a website that I collect large amounts of data from. This site is set up so that as long as the page is scrolled to the bottom of the page, the data continues to load. I have this script that scrolls down 40 clicks down every 3 seconds that keeps this page at the bottom. The loop breaks when an certain image is found on this page that indicates there is no more data or I press the right Alt key. It seems to all work fine as long as this web page is active and on top of my screen. Is there a way where I can start this process and while data is being downloaded I can make other screens active and do other work and occasionally go back to this screen and check process. In other similarly post I am seeing mention of using the Control command that I have been experimenting with but without any success.
CoordMode, Pixel, Window
ImageSearch, FoundX, FoundY, -1750,750,1775,960, *125 %A_Desktop%\Daily Transfer\.png AutoHotKey Images\End.PNG
if ErrorLevel = 0
Loop 40 ;Scroll to bottom of page
Soundbeep, 900, 1000
Ask gaming related questions
6 posts • Page 1 of 1
Thanks for the response here. I will check this out further when I can spend some time with it. Quick question, in this case, does ahk have to even know that its a web page its working on?
ImageSearch does not work with background windows, so you would need some other way to detect when the image is there. Parsing the HTML code for the image file name is probably the best alternative.
Ok... Thanks. I researched that and it seems to be beyond my capabilities. I'm thinking I could take the ImageSearch out of the script with the only drawback being I will not be signaled when finished. As long as I could check progress by toggling between the data collecting window and the second window I might be working on. Would there now be a method for running that script in the background?
Who is online
Users browsing this forum: No registered users and 10 guests