Magikarp wrote:Sorry, i'm new here.
Code: Select all
Version of my Imacros is 8.9.7, of Firefox 48.0.2, and i use Windows 7.
In retrospect there are several subforums suitable for my query (as i use Firefox), so if anybody feels it should be moved that's fine.
Anyway, the problem still persists (and no, i don't know what a PB is
).
"Pb" = "Problem"...
OK, perfect for FCI (Full Config Info), always mention your FCI when you open a Thread, many Commands are not implemented for all Browsers/Versions...
Sub-Forum is fine...
OK, if I understand your Pb correctly, you want to save the Content of '!VAR1' into Col_3 of your '.CSV' File.
You don't need to use '!COL3' which would be to access the Content of Col_3 from a '.CSV' File that you would be using as a DataSource to input Data.
'SAVEAS TYPE=EXTRACT' is what you need indeed and it will save the Content of the '!EXTRACT' Var which is an Array and contains all Extracts you did in your Script. So if you had already 2 Extracts (or other 'ADD !EXTRACT ...' Statements) in your Script before your 'ADD !EXTRACT {{!VAR1}}', this Statement should be fine by itself and you don't need at all your 'SET !EXTRACT {{!COL3}}' which replaces the Content of '!EXTRACT' by '{{!COL3}}' which is probably "_Undefined_".
The following Script should work directly, and I've added 2 PROMPT's for you to understand how '!EXTRACT' gets built and you should get 3 Entries in the 2nd PROMPT separated by '[EXTRACT]':
Code: Select all
PROMPT {{!EXTRACT}}
ADD !EXTRACT {{!VAR1}}
' This is the value i want to save to my csv file
PROMPT {{!EXTRACT}}
...
SAVEAS TYPE=EXTRACT FOLDER=C:\Users\Piet\Desktop FILE=Template.csv
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...