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

Joined
Feb 7, 2014
Messages
15
Reaction score
2
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:
This is my current script:

Code:
VERSION BUILD=8810214 RECORDER=FX
    TAB T=1
    TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:F1 ATTR=NAME:create_new_folder CONTENT=TEST_{{!LOOP}}
    TAG POS=2 TYPE=INPUT:SUBMIT FORM=NAME:F1 ATTR=*
    TAG POS=1 TYPE=INPUT:CHECKBOX FORM=NAME:F1 ATTR=ID:selall CONTENT=YES
    TAG POS=1 TYPE=SELECT FORM=NAME:F1 ATTR=NAME:to_folder CONTENT=%3821
    TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:F1 ATTR=NAME:to_folder_move

I want to fully automate this.

Modifying the loop based on the content works:

Code:
        TAG POS=1 TYPE=SELECT FORM=NAME:F1 ATTR=NAME:to_folder CONTENT=%382{{!LOOP}}

But this would run into two problems:

1. When it reaches 10 folders, the content ID would change to =%383X

2. The digit I want defining the folder is separate to the content ID and I definitely want it to match the loop. The reason I stated this as an issue, because I considered using the SET !LOOP function but that lead to a load of other problems.

So what I'm thinking is that I would like to check the Content ID of the folder I create, place it into a variable then set it to match.

Something like this:

Code:
VERSION BUILD=8810214 RECORDER=FX
    TAB T=1
    SET !VAR1 {{EXTRACT}}
    TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:F1 ATTR=NAME:create_new_folder CONTENT=TEST_{{!LOOP}}
    TAG POS=2 TYPE=INPUT:SUBMIT FORM=NAME:F1 ATTR=*
    **SOMEHOW EXTRACT THE ID**
    TAG POS=1 TYPE=INPUT:CHECKBOX FORM=NAME:F1 ATTR=ID:selall CONTENT=YES
    TAG POS=1 TYPE=SELECT FORM=NAME:F1 ATTR=NAME:to_folder CONTENT=%{{!VAR1}}
    TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:F1 ATTR=NAME:to_folder_move

So how would I go about getting that ID to extract? I can't program like at all, so I'm sorry if my thinking is a bit flawed here.

Any help would be much appreciated!

Oh, and I'm using FireFox in case that has any form of relevance.

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. ;)
 
Back
Top