extraction question

Discussions and Tech Support specific to the iMacros Firefox add-on.
Forum rules
iMacros EOL - Attention!

The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.

Thank you again for your business and support.

Sincerely,
The Progress Team

Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
shanee
Posts: 15
Joined: Fri Jun 22, 2007 5:15 pm

extraction question

Post by shanee » Thu Jun 28, 2007 7:49 pm

Im trying to use JS to run some imacro code. How do you get the last extracted when you run the code in this manner? The iimGetLastExtract() doesnt seem to work. If I put the macro code in a separate .iim file and run it that way it seems to work fine.

Code: Select all

var friendid;
friendid = 24936997;

var MyMacroCode;
var jsNewLine="\n";

MyMacroCode = "CODE:"
MyMacroCode = MyMacroCode+"VERSION BUILD=6000627 RECORDER=FX" + jsNewLine
MyMacroCode = MyMacroCode+"SET !EXTRACT_TEST_POPUP NO" + jsNewLine
MyMacroCode = MyMacroCode+"TAB T=1" + jsNewLine    
MyMacroCode = MyMacroCode+"FILTER TYPE=IMAGES STATUS=ON" + jsNewLine
MyMacroCode = MyMacroCode+"URL GOTO=http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendid="+friendid+jsNewLine
MyMacroCode = MyMacroCode+"TAG POS=1 TYPE=A ATTR=HREF:*viewfriends&friendID=*" + jsNewLine
MyMacroCode = MyMacroCode+"TAG POS=1 TYPE=DIV ATTR=class:pagingOf" + jsNewLine
MyMacroCode = MyMacroCode+"TAG POS=R1 TYPE=TXT EXTRACT=TXT"

var x;
// x = iimPlay("friend_extractor_1");
iimPlay(MyMacroCode);

var y;
y = iimGetLastExtract();

iimDisplay(y);
shanee
Posts: 15
Joined: Fri Jun 22, 2007 5:15 pm

Post by shanee » Sat Jun 30, 2007 7:31 am

Am I doing something wrong, or this just a limitation of the firefox plug-in? Anyone?
Post Reply