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

Two iMacros issues. Should be pretty simple, but I'm a complete noob. Help?

Discussion in 'General Programming Chat' started by backdoorjessie, Feb 19, 2014.

  1. backdoorjessie

    backdoorjessie Newbie

    Joined:
    Feb 7, 2014
    Messages:
    9
    Likes Received:
    1
    Hey, how's it going? Would anyone be kind enough to help me out with these two macros?

    With the first I'm trying to extract a url from the source code. The website itself blocks hotlinking, but I know if you right click and copy img url then it's fine. So, I can't figure out a way to do that specifically in iMacros so I've been looking into getting it from the source.

    I think SEARCH or EVAL should do the trick, but I'm not sure how to manipulate my code accordingly.

    This is the source (I modified the URL as not to advertise on this forum):

    Code:
    img style="cursor: url("../images/zoom-out.cur&quot, auto;" src="[U][B]domain_name/files/3/ut0xs00slpbq11/file_name[/B][/U]" class="pic" id="this_image" alt="a (5).gif" onmousewheel="zoomimg(this)" onload="adjustImage(1)" onclick="adjustImage(); buzo()" onerror="showNullImg(this)" galleryimg="no" width="500"
    
    What I'd like to copy above is in bold.

    As for my second issue, I was going to link you guys to Stackoverflow since I posted it there earlier, but since I can't post links, I'll post below. It's rather... erm, long.
     
    Last edited: Feb 19, 2014
  2. backdoorjessie

    backdoorjessie Newbie

    Joined:
    Feb 7, 2014
    Messages:
    9
    Likes Received:
    1
    Someone came along and said I needed Javascript, but since I can't write in that, and I'm pretty daft when it comes to programming I can't work out where to begin.

    So yeah, any help would be much appreciated guys! Thanks. ;)