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

queue posts using iMacro?

Discussion in 'Tumblr' started by txholdem, Feb 1, 2016.

  1. txholdem

    txholdem Elite Member

    Joined:
    Feb 23, 2009
    Messages:
    1,712
    Likes Received:
    209
    has anybody ever done this? using iMacro to add posts to queue?
    i am having trouble because the recorded script does not show all the texts i enter?
     
  2. ibins

    ibins Jr. VIP Jr. VIP

    Joined:
    May 9, 2011
    Messages:
    179
    Likes Received:
    39
    Location:
    really world wide
    put your images in c:\temp and make a file called list.txt, which includes filenames
    as example use command prompt and do it like: dir /b *.jpg >list.txt
    run loop

    Code:
    SET !ERRORIGNORE YES
    SET !TIMEOUT_PAGE 30
    SET !TIMEOUT_STEP 6
    
    
    SET !EXTRACT NULL
    SET rand EVAL("var randomNumber=Math.floor(Math.random() * (999999 - 111111 + 1)) + 111111; randomNumber;")
    SET wat EVAL("var myArray = ['Gorgeous','Super','Hot','Cool'];var rand = myArray[Math.floor(Math.random() * myArray.length)];rand;")
    SET link "http://www.vengaboys.com/{{rand}}"
    SET path "C:\\temp\\"
    SET alltextlink "<a href=\"{{link}}\">{{wat}} <b>Vengaboys</b> in da house...</a>"
    SET kw "music,{{wat}},vengaboys,txholdem,imacros"
    
    
    CMDLINE !DATASOURCE {{path}}list.txt
    SET !DATASOURCE_COLUMNS 1
    SET !LOOP 1
    SET !DATASOURCE_LINE {{!LOOP}}
    SET img {{!COL1}}
    
    
    URL GOTO=https://www.tumblr.com/dashboard
    WAIT SECONDS=1
    TAG POS=1 TYPE=I ATTR=CLASS:icon_post_photo&&TXT:
    WAIT SECONDS=1
    TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:photo CONTENT={{path}}{{img}}
    WAIT SECONDS=1
    TAG POS=1 TYPE=BUTTON ATTR=DATA-JS-CLICKABLEPOSTSETTINGSCOG:&&CLASS:post-settings&&TXT:
    WAIT SECONDS=1
    TAG POS=1 TYPE=SELECT ATTR=ID:editorType CONTENT=%html
    WAIT SECONDS=1
    
    
    EVENT TYPE=CLICK SELECTOR="#sourceUrl_input" BUTTON=0
    WAIT SECONDS=1
    EVENTS TYPE=KEYPRESS SELECTOR="#sourceUrl_input" CHARS="{{link}}"
    WAIT SECONDS=1
    EVENT TYPE=KEYPRESS SELECTOR="#dashboard_index" KEY=13
    WAIT SECONDS=1
    TAG POS=1 TYPE=DIV ATTR=CLASS:icon<SP>icon_editor_link&&TXT:
    WAIT SECONDS=1
    
    
    EVENT TYPE=CLICK SELECTOR="#dashboard_index>DIV:nth-of-type(12)>DIV>INPUT" BUTTON=0
    WAIT SECONDS=1
    EVENTS TYPE=KEYPRESS SELECTOR="#dashboard_index>DIV:nth-of-type(12)>DIV>INPUT" CHARS="{{link}}"
    WAIT SECONDS=1
    EVENT TYPE=CLICK SELECTOR="#dashboard_index>DIV:nth-of-type(12)>DIV>DIV" BUTTON=0
    
    
    WAIT SECONDS=1
    EVENT TYPE=CLICK SELECTOR="#new_post_buttons>DIV:nth-of-type(4)>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(2)>DIV:nth-of-type(2)>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(2)>DIV>DIV>DIV:nth-of-type(3)>DIV" BUTTON=0
    WAIT SECONDS=1
    EVENTS TYPE=KEYPRESS SELECTOR="#new_post_buttons>DIV:nth-of-type(4)>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(2)>DIV:nth-of-type(2)>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(2)>DIV>DIV>TEXTAREA" CHARS="{{alltextlink}}"
    WAIT SECONDS=1
    EVENT TYPE=CLICK SELECTOR="#new_post_buttons>DIV:nth-of-type(4)>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(3)>DIV>DIV>DIV>DIV>DIV>DIV" BUTTON=0
    WAIT SECONDS=1
    EVENTS TYPE=KEYPRESS SELECTOR="#new_post_buttons>DIV:nth-of-type(4)>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(3)>DIV>DIV>DIV>DIV>DIV>DIV" CHARS="{{kw}},"
    WAIT SECONDS=1
    'TAG POS=1 TYPE=BUTTON ATTR=TXT:Post
    
    
    TAG POS=1 TYPE=DIV ATTR=DATA-JS-CLICKABLESAVEDROPDOWN:&&CLASS:flat-button<SP>blue<SP>dropdown<SP>options<SP>icon_arrow_carrot_down<SP>pinned-target&&TXT:
    WAIT SECONDS=1
    TAG POS=1 TYPE=SPAN ATTR=TXT:Add<SP>to<SP>queue
    WAIT SECONDS=1
    TAG POS=1 TYPE=BUTTON ATTR=TXT:Queue
    WAIT SECONDS=9
    
     
    • Thanks Thanks x 1