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

How to Make an Imacro Script that Automatically Check every Checkbox on a Page?

Discussion in 'BlackHat Lounge' started by lostpassword, Aug 4, 2012.

  1. lostpassword

    lostpassword Junior Member

    Joined:
    Jul 19, 2012
    Messages:
    135
    Likes Received:
    199
    How to Make an Imacro Script that Automatically Check every Checkbox on a Page?

    More specifically, I want to check all the contractor I filtered on odesk in order to send them an invite to my job post.
     
  2. neu009

    neu009 Jr. VIP Jr. VIP Premium Member

    Joined:
    Jul 29, 2009
    Messages:
    1,020
    Likes Received:
    272
    You can loop through the tags for example .. Im not sure of the page since odesk redesigned a lot of stuff and havent looked at it since. Record the click on 2 and see if the tag might just be including pos1, pos2... then you can just do e.g. pos{{!loop}} and play the loop for the page..
     
    • Thanks Thanks x 1
  3. lostpassword

    lostpassword Junior Member

    Joined:
    Jul 19, 2012
    Messages:
    135
    Likes Received:
    199
    I can check all the contractor on page 1 but I can't do that on page 2 with your method.

    Thanks anyway.
     
  4. neu009

    neu009 Jr. VIP Jr. VIP Premium Member

    Joined:
    Jul 29, 2009
    Messages:
    1,020
    Likes Received:
    272
    Np.
    Sorry dont know the exact page so cannot give any further advice. Do you know how many are on each page? then loop through it that many time then have it click to get to page 2 and do the same there (find the tag by recording 2 different clicks...) other than that it would get more complex and you would need to use scripting rather than just doing a macro.
     
  5. sirgold

    sirgold Supreme Member

    Joined:
    Jun 25, 2010
    Messages:
    1,260
    Likes Received:
    645
    Occupation:
    Busy proving the Pareto principle right
    Location:
    A hot one
    To check all checkboxes on a page just use URL="javascript:yourcode" where "yourcode" is a simple js snippet that iterates through all the checkboxes via DOM and checks what you need... If you need to check'em all it's a one liner, if you want to discriminate an indexOf or regex will easily do the trick.