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

Help with scroll code in imacros

Discussion in 'General Scripting Chat' started by Diesel600, Jun 6, 2016.

  1. Diesel600

    Diesel600 Registered Member

    Joined:
    Mar 22, 2014
    Messages:
    81
    Likes Received:
    7
    Hi guys I'm having a problem, the scroll code I have works fine but doesn't work when the browser is minimized. Can anyone help me fix this? the code is:
    EVENTS TYPE=KEYPRESS XPATH="/html/body/div[2]/div/div[2]/div/div[2]/ul/li[50]/div/div[2]/span/button" KEYS="[34]"
    I would really appreciate it!
     
  2. cloaking

    cloaking Registered Member

    Joined:
    Aug 21, 2015
    Messages:
    94
    Likes Received:
    31
    You could use this to scroll down:
    Code:
    URL GOTO=javascript:window.scrollBy(0,20000);
    It should work without focus.