Discussions and Tech Support related to automating the iMacros Browser or Internet Explorer from any scripting and programming language, such as VBS (WSH), VBA, VB, Perl, Delphi, C# or C++.

Forum rulesBefore asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the Google search box (at the top of each forum page) to see if a similar problem or question has already been addressed. This will search the entire contents of the forums as well as the iMacros Wiki.
3. We can respond much faster to your posts if you include the following information:

This confuses me because there is a difference in the prompt display with the storage results in the .csv file. Are there any other suggestions of the script code changes that should be used.

Beeeeh, yep, of course...!, that's normal...!
'SAVEAS TYPE=EXTRACT' will save the full Content of the '!EXTRACT' Var at that Moment...
Your "diamond-3" Value is contained in the Var that I called 'Rep_Badge'...; when you want to do your 'SAVEAS', you need to populate '!EXTRACT' with the Data that you want to include in the 'SAVEAS', with a "SET/ADD !EXTRACT {{Rep_Badge}}"...

That Step was not needed previously as you were applying 'EVAL()' directly to '!EXTRACT', which is a bad Practice I told you, (or like I kind of called it, a "fake-semi-advanced Technique to impress Beginners and Script Kiddies"), and can be very dangerous if you do several Extracts in your Script, especially if you don't understand the Principle..., but you need to understand at least a little bit how Variables work...
I'm starting to wonder what you meant with "Please help me to complete my case study."... What did you mean with "case study"...?

- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...

Thank you in advance for helping me with my case study.
I've tried your script by using "SET !EXTRACT {{Rep_Badge}}" and it was saved successfully as expected.

Forgive me for my stupidity, because I do not know exactly how the iMacros script works and I've read and searched for information related to iMacros.

Oh yep, regarding the intent of "Please help me to complete my case study." The purpose of the "case study" is the problem I encountered on my iMacros script that was deadlocked and I have been looking for from various sources and on search engines but have not found a solution to solve my problems on Pb'_1, _2, and _3. But you have helped me and taught me to understand the principles of the workings of iMacros, in this forum I learned a lot about iMacros and I followed the problems that generally occur in iMacros scripts.

So, the problem with the iMacros script code I encountered was a case study for me that had to be done. But I can not understand in detail when I put "SET !EXTRACT" on the stored data has problems that there is some data that does not participate stored. If I use "ADD !EXTRACT" on the data stored many repetition occurs, such as:

Data stored just "Gold Merchant" nothing else is stored in a .csv file. But if I replace "SET !EXTRACT" to "ADD !EXTRACT" there is repetition of storage in .csv file ie "diamond-3, 177.897, Gold Merchant, diamond-3, 177.897, Gold Merchant, diamond-3, 177.897, Gold Merchant ,.." So on .... huuuuffft this makes me become dizzy and confused in looking for solving this problem. Hopefully you can give the best solution, especially on Pb's_3 which still make me confused.

widilye wrote:Thank you in advance for helping me with my case study.
I've tried your script by using "SET !EXTRACT {{Rep_Badge}}" and it was saved successfully as expected.

Forgive me for my stupidity, because I do not know exactly how the iMacros script works and I've read and searched for information related to iMacros.

Oh yep, regarding the intent of "Please help me to complete my case study." The purpose of the "case study" is the problem I encountered on my iMacros script that was deadlocked and I have been looking for from various sources and on search engines but have not found a solution to solve my problems on Pb'_1, _2, and _3. But you have helped me and taught me to understand the principles of the workings of iMacros, in this forum I learned a lot about iMacros and I followed the problems that generally occur in iMacros scripts.

So, the problem with the iMacros script code I encountered was a case study for me that had to be done. But I can not understand in detail when I put "SET !EXTRACT" on the stored data has problems that there is some data that does not participate stored. If I use "ADD !EXTRACT" on the data stored many repetition occurs, such as:

Data stored just "Gold Merchant" nothing else is stored in a .csv file. But if I replace "SET !EXTRACT" to "ADD !EXTRACT" there is repetition of storage in .csv file ie "diamond-3, 177.897, Gold Merchant, diamond-3, 177.897, Gold Merchant, diamond-3, 177.897, Gold Merchant ,.." So on .... huuuuffft this makes me become dizzy and confused in looking for solving this problem. Hopefully you can give the best solution, especially on Pb's_3 which still make me confused.

Yep, normal-normal, from the 'Command Reference' Page in the Wiki, read the Documentation for the 'SET' + 'ADD' + 'TAG' [+ 'EXTRACT'] + '!EXTRACT' Commands, you need to understand the basic Functionality of those Commands with the Difference between 'SET' and 'ADD', and understand how the 'EXTRACT' Mechanism works...
Only then you will understand how to control the Content of the '!EXTRACT' Var to only include (and only once...!) the Content that you want to save in your '.CSV' File.
And each time you use 'SET' on the same Var (and that applies to '!EXTRACT' as well), you obviously reset that Var to the new Value...

"Case Study" sounds to me like you are doing some "Project" for School, but OK, never mind...
But OK, that means you want to learn, then you need to understand by yourself how the 'EXTRACT' Mechanism works and how to use 'SET' and 'ADD', I'm not really helping you if I correct your Script for you... OK, good luck, you are close...!

- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...