seothtt 1 Posted May 14, 2012 Report Share Posted May 14, 2012 I have a script thats going through my wordpress sites so I can check some stuff, but I want it to scroll to the bottom of the page. How can I make it scroll down? Richard Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted May 14, 2012 Report Share Posted May 14, 2012 have it use focus, and can focus on a link at the bottom of your page, or can use run java script and use window.scrollTo(0,document.body.scrollHeight); 4 Quote Link to post Share on other sites
malefic 48 Posted May 14, 2012 Report Share Posted May 14, 2012 Hey TJ - what would be the best way to detect if you have hit the bottom of a site using that command? I have a site that would be a lot easier to play with using that javascript trick, but how would I loop the command until you can't page down anymore? Any ideas appreciated and thanks again for that helpful little tip! Quote Link to post Share on other sites
AutoIM 5 Posted May 14, 2012 Report Share Posted May 14, 2012 Hey TJ - what would be the best way to detect if you have hit the bottom of a site using that command? I have a site that would be a lot easier to play with using that javascript trick, but how would I loop the command until you can't page down anymore? Any ideas appreciated and thanks again for that helpful little tip! If I'm correct, what TJ has given will indeed scroll to the bottom, as the params for window.scrollTo() are: x pos , y pos, so window.scrollTo(0,document.body.scrollHeight) should scroll to height of the current container ( in this case, the web page), which will be to the bottom of it, if that makes sense. Phil Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted May 14, 2012 Report Share Posted May 14, 2012 normally you wait x seconds after you loop to the bottom. then you can look for something that normally shows up like a loading image or something telling you more results are waiting to appear. and loop while exists, wait 1 second. normally most sites that do this have a maximum number of times you can get more information at the bottom. find that key number and loop that entire process that many times. 1 Quote Link to post Share on other sites
malefic 48 Posted May 14, 2012 Report Share Posted May 14, 2012 Phil, TJ. Thanks for the fast replies - I guessed that would be the answer.Just wondered if there was something magical that would keep it looping auto-magically Will continue with some loops checking if the footer has changed. Again - thanks for the fast reply, it is appreciated! Quote Link to post Share on other sites
Kazzo 9 Posted May 25, 2012 Report Share Posted May 25, 2012 Phil, TJ. Thanks for the fast replies - I guessed that would be the answer.Just wondered if there was something magical that would keep it looping auto-magically Will continue with some loops checking if the footer has changed. Again - thanks for the fast reply, it is appreciated! You can try this out .. works like a baby for me :-). loop(100) { wait(1) run javascript("window.scrollBy(0,50); // horizontal and vertical scroll incrementsscrolldelay = setTimeout(\'pageScroll()\',100); // scrolls every 100 milliseconds") wait(1)} 1 Quote Link to post Share on other sites
Kev 69 Posted June 2, 2012 Report Share Posted June 2, 2012 You can try this out .. works like a baby for me :-). loop(100) { wait(1) run javascript("window.scrollBy(0,50); // horizontal and vertical scroll incrementsscrolldelay = setTimeout(\'pageScroll()\',100); // scrolls every 100 milliseconds") wait(1)} this is exactly what I was looking for, thanks Kazzo! Quote Link to post Share on other sites
musician87 2 Posted July 23, 2013 Report Share Posted July 23, 2013 have it use focus, and can focus on a link at the bottom of your page, or can use run java script and use window.scrollTo(0,document.body.scrollHeight); The JS function worked like a charm for me! Thanks! 1 Quote Link to post Share on other sites
SouthFLPal 0 Posted September 29, 2013 Report Share Posted September 29, 2013 The JS function worked like a charm for me! Thanks!Thanks man! Easy and works perfectly. Quote Link to post Share on other sites
Frank 177 Posted September 29, 2013 Report Share Posted September 29, 2013 yeah, great command. I've used it too many times. Frank Quote Link to post Share on other sites
qbarga 0 Posted December 3, 2013 Report Share Posted December 3, 2013 man, this was just the function i was looking for! excellent! thank you Quote Link to post Share on other sites
Evernano 2 Posted March 24, 2014 Report Share Posted March 24, 2014 Thanks A million... was looking for this... works great... Quote Link to post Share on other sites
sanampuri 0 Posted February 16, 2015 Report Share Posted February 16, 2015 i Have a Question. How to Scroll Child Windows instead of mail Windows Scrolling Using Java script. Can anyone Explains how to Do. Quote Link to post Share on other sites
spa3212 1 Posted September 25, 2017 Report Share Posted September 25, 2017 Is there any way that we can scroll external app, same we do with mouse wheel scrolling.. Quote Link to post Share on other sites
fastlinks 16 Posted February 20, 2019 Report Share Posted February 20, 2019 exbrowser run javascriptwindow.scrollTo(0, document.body.scrollHeight || document.documentElement.scrollHeight);ubot run javascriptwindow.scrollTo(0,document.body.scrollHeight); 1 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.