iMacros for Firefox 2012-07-25 V7.5.0.4 - BUG Relative POS

Discussions and Tech Support related to the iMacros Firefox Add-on, including the built-in Javascript scripting interface for playing .js files.
Forum rules
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
higorvaz
Posts: 3
Joined: Fri Jun 22, 2012 3:27 pm

iMacros for Firefox 2012-07-25 V7.5.0.4 - BUG Relative POS

Post by higorvaz » Tue Jul 31, 2012 7:52 pm

What happened with this version the command to Relative Position is not working more ???!!! :(
In my code it worked well since last update:
////////////////////////////////////

iimPlay("CODE:TAG POS=2 TYPE=TD FORM=NAME:form1 ATTR=CLASS:txtDestaque EXTRACT=TXT");
DataMonitoria = iimGetLastExtract(0).slice(-9);
//Get Time
iimPlay("CODE:TAG POS=R2 TYPE=TD FORM=NAME:form1 ATTR=CLASS:txtDestaque EXTRACT=TXT");
HoraServer = iimGetLastExtract(0);

////////////////////////////////////

Now I have to make changes in all my scritps !!!!

////////////////////////////////////

iimPlay("CODE:TAG POS=2 TYPE=TD FORM=NAME:form1 ATTR=CLASS:txtDestaque EXTRACT=TXT");
DataMonitoria = iimGetLastExtract(0).slice(-9);
//Get Time
iimPlay("CODE:TAG POS=3 TYPE=TD FORM=NAME:form1 ATTR=CLASS:txtDestaque EXTRACT=TXT");
HoraServer = iimGetLastExtract(0);

////////////////////////////////////
fb.com/higorvaz
User avatar
Tech Support
Posts: 4948
Joined: Tue Sep 20, 2005 7:25 pm
Contact:

Re: iMacros for Firefox 2012-07-25 V7.5.0.4 - BUG Relative P

Post by Tech Support » Fri Aug 03, 2012 8:52 am

Here is the background information: We never officially supported relative extraction distributed over two or more iimPlay commands. But somehow it worked fine in iMacros for Firefox.

Now, while fixing a memory leak issue (those scary zombie compartments) in iMacros for Firefox we had to reset all variables in player after each run (and thus the reference to last element) so relative positioning will not work in two successive iimPlay() calls.

The solution is to combine the first TAG and the relative TAG in same iimPlay call.

You can get the two extracted values then with

iimGetLastExtract(1) => value from 1st TAG with EXTRACT

iimGetLastExtract(2) => value from 2nd TAG with EXTRACT
Post Reply