how to scroll down
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
how to scroll down
I need the javascript or imacros code to scroll down many pages, how do i do this?
Re: how to scroll down
Try this
URL GOTO=javascript:window.scrollBy(0,5000)
edit the number 5000 to scroll for your needs
URL GOTO=javascript:window.scrollBy(0,5000)
edit the number 5000 to scroll for your needs
VERSION BUILD=8820413 RECORDER=FX, WIN7 64-bit SK, Pale Moon 25.8.1(x86)
FCIM here http://forum.imacros.net/viewtopic.php?f=20&t=3331
FCIM here http://forum.imacros.net/viewtopic.php?f=20&t=3331
Re: how to scroll down
Cobra99 wrote:Try this
URL GOTO=javascript:window.scrollBy(0,5000)
edit the number 5000 to scroll for your needs
your code is incomplete js code that gives an error, but I already have that code in my script and it has no effect on the page anymore, it used to work a year or two ago:
Code: Select all
ret=iimPlay("code:URL GOTO=javascript:window.scrollBy(0,20000000)\nwait seconds=2");
Re: how to scroll down
I've also just tried the expiremental mode with keypressing page down and ctrl+end
simulates ctrl+end keypress:
simulates page down keypress:
none of the above works to scroll down, so I'm still looking for a way to scroll down a page
simulates ctrl+end keypress:
Code: Select all
EVENT TYPE=KEYPRESS SELECTOR="HTML>BODY" KEY=35 MODIFIERS="ctrl"
simulates page down keypress:
Code: Select all
EVENTS TYPE=KEYPRESS SELECTOR="HTML>BODY" KEYS="[34]"
none of the above works to scroll down, so I'm still looking for a way to scroll down a page
Re: how to scroll down
is there any way to simulate the mouse scroll wheel in imacros for firefox?
Re: how to scroll down
Cobra99's Code works, I use it everyday (since years) and just right now (I have a Script running 24/7 on a 2nd Screen) and it works...
But mention your FCI please when you open a Thread..., I don't do any Digging when FCI is not mentioned...
But mention your FCI please when you open a Thread..., I don't do any Digging when FCI is not mentioned...
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE').
- I don't even read the Qt if that (required) Info is not mentioned...!
- Script & URL help a lot for more "educated" Help...
- I don't even read the Qt if that (required) Info is not mentioned...!
- Script & URL help a lot for more "educated" Help...
Re: how to scroll down
put this in your browser console and hit enter
Code: Select all
setInterval(function() { window.scrollTo(0, document.body.scrollHeight); }, 2000);