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

Could someone help me with this iMacros script..

Discussion in 'Black Hat SEO' started by milestone, Nov 30, 2009.

  1. milestone

    milestone Regular Member

    Joined:
    Aug 27, 2009
    Messages:
    261
    Likes Received:
    50
    I've tried the official iMacros forum, but its dead and no one ever replies :(

    Ive been trying to make an iMacros code that paste whats in the clipboard to a FB group wall automatically. I think this code should work but the problem is, when it clicks the "write here.." part on facebook, it doesnt open the input up to allow you to type the comment, so the script isnt finding the div that appears when it opens and cannot paste the content.. this is my script, could anyone help me out with this?

    Thanks in advance :)

    Code:
    VERSION BUILD=6240709 RECORDER=FX
    TAB T=1
    CLICK X=303 Y=148
    TAG POS=1 TYPE=textarea ATTR=ID:c4b141822e67cf7d256795_input
    WAIT SECONDS=2
    CLICK X=303 Y=148
    TAG POS=1 TYPE=DIV ATTR=CLASS:Mentions_Input CONTENT={{!CLIPBOARD}}
    TAG POS=1 TYPE=INPUT:SUBMIT ATTR=VALUE:Share
    WAIT SECONDS=2
    
     
  2. johnkperks

    johnkperks Newbie

    Joined:
    Aug 24, 2009
    Messages:
    19
    Likes Received:
    3
    Some of these websites, do not like just a CLICK on single pixel. If FB is not moving the position of the "write here" area (sites like hubpages and others do). You may be better off using HTML.
    Secondly, have you tried using 'user agent switcher' (using iPhone mode - means limiting FB scripts) and then using the click option.
     
  3. milestone

    milestone Regular Member

    Joined:
    Aug 27, 2009
    Messages:
    261
    Likes Received:
    50
    I think the problem is that their is java involoved so that when you click the write something, the java reacts and opens the input box.. i can now get the input box to appear using the click function, but i cannot find the name of the element that opens up so the script crashes.. How do i use the user agent switcher? thanks

    EDIT: let me rephrase that lol..

    the prolem isn't that i can't click the elements, the problem is that their is some script onvolved so the input area appears AFTER the write something has been clicked. Ive look through the source code and cannot for the life of me find this new element within the code, which leads me to believe it is an external code. So i cannot direct iMacros to fill in the input, because i cannot tell iMacros what the element is called..
     
    Last edited: Nov 30, 2009
  4. flybeta

    flybeta Junior Member

    Joined:
    Feb 7, 2009
    Messages:
    185
    Likes Received:
    14
    just a guess but I assume "c4b141822e67cf7d256795_input" changes everytime page loads
     
  5. milestone

    milestone Regular Member

    Joined:
    Aug 27, 2009
    Messages:
    261
    Likes Received:
    50
    Yes it does, but i now target it with the class instead of the id, which stays the same. This is the most recent update

    Code:
    VERSION BUILD=6240709 RECORDER=FX
    TAB T=1
    CLICK X=303 Y=148
    CLICK X=303 Y=148 CONTENT=openinput
    
    ^^^This is used to open the box, for some reason, if i try to add content, it opens.
    
    TAG POS=1 TYPE=TEXTAREA ATTR=ONFOCUS:"window.UIComposer && UIComposer.focusInstance("c4b1445141a4b52407635641");" 
    CONTENT="add me"
    
    ^^^ This is because in the script there is an onfocus for the input box.
    
    TAG POS=1 TYPE=INPUT:SUBMIT ATTR=VALUE:Share
    WAIT SECONDS=2
    
    
    
    EDIT: Ok, this is the text area

    Code:
    <textarea onfocus="window.UIComposer && UIComposer.focusInstance("c4b144dc9596f37070856264");" id="c4b144dc9596f37070856264_input" class="UIComposer_TextArea DOMControl_placeholder" name="status" title="Write something..." placeholder="Write something...">Write something...</textarea>
    
    I realise this will change everytime the page loads, is there anyway to get round this?
     
    Last edited: Nov 30, 2009
  6. 1link

    1link Registered Member

    Joined:
    Dec 9, 2008
    Messages:
    93
    Likes Received:
    196
    I have encountered this kind of problem earlier with forum registration where session ID string would keep changing like register.php?session_ID=c4b144dc9596f37070856264 or something. What I did was, I just removed the query string altogether and used the direct register.php link.

    It worked. But I don't know if this solution will work in your case. These kinds of things are real pain in the as*. Some sites just won't allow "hard working" people to make their living ;)

     
  7. milestone

    milestone Regular Member

    Joined:
    Aug 27, 2009
    Messages:
    261
    Likes Received:
    50
    I was speaking with a friend who told me i need to 'bypass the HTTP' on facebook. Anyone have any idea what this means and how to do it? .. He said use mobile facebook, but then i cant access the groups.
     
  8. bobvance2006

    bobvance2006 Junior Member

    Joined:
    May 30, 2008
    Messages:
    121
    Likes Received:
    12
    take out the session id and use iMacros direct screen commands (DS) instead of using the div layers to click... make sure to put in delays. its a little bit of a pain but its really the only way to get iMacros to work with some javascript.

    the other option- go to GAF and hire a freelancer to build a custom app in .net to do the same thing...
     
  9. mrwho

    mrwho Junior Member

    Joined:
    Apr 3, 2008
    Messages:
    122
    Likes Received:
    39
    The * is a wildcard for imacros and is used for parts that constantly change such as parts to a URL.
    and I believe what you are trying to do can only be done in the Scripting edition of imacros as the Firefox one doesn't support the right commands.
    Here's what works for me:
    Code:
    SET !VAR1 Test<SP>comment<SP>
    SIZE X=1136 Y=883    
    'New page loaded      
    DS CMD=CLICK X=379 Y=149 CONTENT=  
    WAIT SECONDS=-0.039     
    DS CMD=CLICK X=379 Y=149 CONTENT=
    WAIT SECONDS=3.649     
    DS CMD=CLICK X=353 Y=146 CONTENT={{!var1}}
    WAIT SECONDS=5  
    TAG POS=1 TYPE=INPUT:SUBMIT ATTR=VALUE:Share


    Use the mobile facebook URL and use the search found at the top and bottom of the page to look for groups...Not sure if facebook will ban a account for a normal user posting through the mobile site so we will change our browser's user agent by adding this to our script:
    Code:
    SET !USERAGENT "BlackBerry9530/4.7.0.181 Profile/MIDP-2.1 Configuration/CLDC-1.1 VendorID/105"  
    

    To avoid having to change the "URL goto" line for every group to the mobile version you can use a CSV file to compile a list of all the group urls and make the script Loop
     
    • Thanks Thanks x 1
    Last edited: Dec 1, 2009
  10. milestone

    milestone Regular Member

    Joined:
    Aug 27, 2009
    Messages:
    261
    Likes Received:
    50
    damn, mrwho, you gave me just what i needed lol. I'll try this out, the reason i wanted to use FF is because i was using Sandboxy and set up 4 sandboxes, each with its on browser. That way i could have 4 account logged into facebook at the same time. I will try your way with the scripting edition and see if i can get it working, thanks for this :)
     
  11. johnkperks

    johnkperks Newbie

    Joined:
    Aug 24, 2009
    Messages:
    19
    Likes Received:
    3
    I have already told you about this in my first answer. Use Iphone interface in FF by using 'user agent switcher'. That should solve the problem in most cases. Just google it mate - 'how to let FF act as iPhone'.