1

I'm trying to create a macro that just scrolls down to the bottom of the page on a typical "endless" page such as Facebook. Then I will Set the Max Loop and click "Play (Loop)" based on how long I want it to go.
IMacro 9.0.3 in Firefox 49.0.1.

'SET !WAITPAGECOMPLETE YES
URL GOTO=javascript:window.scrollBy(0,20)
WAIT SECONDS=1

It runs for maybe 20 seconds, then gets error:

Page loading timeout, URL: javascript:window.scrollBy(0,2000), line: 3 (Error code: -802)

If I include the !WAITPAGECOMPLETE, I get this error:

Unsupported variable !WAITPAGECOMPLETE, line: 1 (Error code: -911)

Alternatively I tried the timeout based on this Stackoverflow Question.

'SET !WAITPAGECOMPLETE YES
SET !TIMEOUT_PAGE 3
URL GOTO=javascript:window.scrollBy(0,2000)
WAIT SECONDS=1

and it often gets this error (even when I just click the "Play" vs the "Play (loop)" button.

Page loading timeout, URL: javascript:window.scrollBy(0,2000), line: 3 (Error code: -802)

Community
  • 1
  • 1
NealWalters
  • 17,197
  • 42
  • 141
  • 251

1 Answers1

2

Try to play the following code in loop mode:

EVENT TYPE=KEYPRESS SELECTOR=* KEY=35
WAIT SECONDS=1
Shugar
  • 5,269
  • 1
  • 9
  • 9
  • I'm at work, will try later. Is 35 down arrow? Is that ASCII or where did you get the code 35 for the key? – NealWalters Oct 28 '16 at 16:14
  • 35 is the 'End' key. Simply recorded with 'Experimental event recording mode'. – Shugar Nov 02 '16 at 07:36
  • Sorry for the delay in responding, it works great! Their documentation must be bad if I couldn't figure it out - I've only been doing computers for 37 years or so! – NealWalters Nov 04 '16 at 03:45