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

I Need help with imacros frames with changing frame numbers

Discussion in 'General Programming Chat' started by rap8557, Apr 13, 2015.

  1. rap8557

    rap8557 Jr. VIP Jr. VIP

    Joined:
    Sep 15, 2008
    Messages:
    1,330
    Likes Received:
    480
    Im currently making a YT commenter but i can't make it work, i've realize that the frame is changing numbers.
    Please help i really don't know how to code.

    VERSION BUILD=8920312 RECORDER=FX
    TAB T=1
    URL GOTO=https://www.youtube.com/watch?v=FSNasZ5W_8A
    EVENT TYPE=CLICK SELECTOR="#yt-comments-sb-standin>DIV>DIV:nth-of-type(3)>SPAN" BUTTON=0
    FRAME NAME="I0_1428895033347"
    EVENTS TYPE=KEYPRESS SELECTOR="#\\:9\\.f" CHARS="sfrgrh"



    This code FRAME NAME="I0_1428895033347" is always changing whenever i change my youtube account. I've already done my research and found this solution http://forum.imacros.net/viewtopic.php?f=6&t=12147 but i don't know how to implement it on imacros.

    Please guys help..
    Thanks
     
  2. tompots

    tompots Elite Member Premium Member

    Joined:
    Dec 11, 2011
    Messages:
    4,371
    Likes Received:
    3,964
    Gender:
    Male
    Occupation:
    Full Time Bot Developer
    Location:
    Automation Alternatives
    Home Page:
    Try this, I will not go into the full details on a public forum. Scrape the frame ID when the
    page loads and save it to a var, then load it back into the code at the point it's needed.
    When you chage to the next account, clear and reset the var new.

    Code:
    http://wiki.imacros.net/Data_Extraction
    
     
    • Thanks Thanks x 1
  3. rap8557

    rap8557 Jr. VIP Jr. VIP

    Joined:
    Sep 15, 2008
    Messages:
    1,330
    Likes Received:
    480
    Thanks for the reply, but scraping frame id will take a lot of time but it will do the trick.
    I'll do this as a temporary fix.
     
    • Thanks Thanks x 1
  4. rap8557

    rap8557 Jr. VIP Jr. VIP

    Joined:
    Sep 15, 2008
    Messages:
    1,330
    Likes Received:
    480
    Ok, i've just tested this but still it didn't worked. It seems youtube change the frame no when you change channel and videos. I still need help with this.

    Thanks you
     
  5. tompots

    tompots Elite Member Premium Member

    Joined:
    Dec 11, 2011
    Messages:
    4,371
    Likes Received:
    3,964
    Gender:
    Male
    Occupation:
    Full Time Bot Developer
    Location:
    Automation Alternatives
    Home Page:
    Then you may need to grab the ID every time it's changed, or on evey page load.
     
  6. Carder1122

    Carder1122 Newbie

    Joined:
    Mar 15, 2017
    Messages:
    37
    Likes Received:
    1
    Gender:
    Male

    Facing the same problem ... Sir can you Dm how can i grab the Fram ID ??