1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

iMacro Help

Discussion in 'General Scripting Chat' started by jmcs23, May 8, 2016.

  1. jmcs23

    jmcs23 Regular Member

    Joined:
    Mar 3, 2009
    Messages:
    361
    Likes Received:
    52
    Location:
    California
    Hello,

    I'm working on an iMacros script in FireFox, however I need some assistance...

    I have a set of commands, then I want iMacros to stop and wait for the current page to load before proceeding to the next step.

    How can I make iMacros stop and wait for the page to load before moving on to the next step?

    I tried the SET !WAITPAGECOMPLETE YES code, but I got the error BadParameter: Unsupported variable !WAITPAGECOMPLETE, line 8 (Error code: -911)


    Thanks in advance!
     
    Last edited: May 8, 2016
  2. redarrow

    redarrow Elite Member

    Joined:
    Apr 1, 2013
    Messages:
    4,294
    Likes Received:
    981
    Set !timeout_page 120
     
    • Thanks Thanks x 1
  3. jmcs23

    jmcs23 Regular Member

    Joined:
    Mar 3, 2009
    Messages:
    361
    Likes Received:
    52
    Location:
    California
    Thank you for the reply! The only problem with setting a specific timeout is that each time the 120 seconds may or may not be long enough. Sometimes it may be too long and other times it may be too short. In other words, the page may or may not be done loading within 120 seconds. Therefore, I need to be able to set iMacros to actually wait until the page is loaded, whether it take 5 seconds or 5 minutes.
     
  4. HoNeYBiRD

    HoNeYBiRD Jr. VIP Jr. VIP

    Joined:
    May 1, 2009
    Messages:
    6,954
    Likes Received:
    7,984
    Gender:
    Male
    Occupation:
    Geographer, Tourism Manager
    Location:
    Ghosted
    If you set the timeout of a page, it doesn't mean that iMacros will wait every time that long to continue with the macro. The default timeout is 60 seconds, does iMacros always wait 60 seconds for loading a page before continuing with the next step? No, iMacros continues when the page is fully loaded, if you set a high enough number for the page timeout, it should do the trick. You don't need to know the number, just set it to an hour for instance, so the page will load surely in that time frame.

    One more thing: that line of code which causes you the error in Firefox, it's happening because, that command is only supported in IE or in the standalone iMacros browser, even though this is not specified in the iMacros wiki.
     
    • Thanks Thanks x 1
    Last edited: May 8, 2016
  5. jmcs23

    jmcs23 Regular Member

    Joined:
    Mar 3, 2009
    Messages:
    361
    Likes Received:
    52
    Location:
    California
    Thank you for the information! I was unaware that iMacros would automatically continue when the page is fully loaded regardless of what the !TIMEOUT_PAGE is set to. I took your advice and now I'm good to go. :fing26:
     
    • Thanks Thanks x 1