provoquestosito wrote: ↑Thu Jul 18, 2019 6:28 pm
Hi
I have
Code: Select all
imacros 8.9.7 with firefox 52 ESR and windows 7.
I search a fast and easy way to update the {{!COL1}} values in my macro.
This is an example of my macro code
Code: Select all
TAG POS=1 TYPE=LABEL FORM=ID:post ATTR=TXT:{{!COL16}}
TAG POS=1 TYPE=LABEL FORM=ID:post ATTR=TXT:{{!COL17}}
TAG POS=1 TYPE=LABEL FORM=ID:post ATTR=TXT:{{!COL18}}
TAG POS=1 TYPE=LABEL FORM=ID:post ATTR=TXT:{{!COL19}}
TAG POS=1 TYPE=LABEL FORM=ID:post ATTR=TXT:{{!COL20}}
TAG POS=1 TYPE=LABEL FORM=ID:post ATTR=TXT:{{!COL21}}
If, for example, I had 1000 columns to specify in the code, is there a simpler and faster solution compared to writing them manually ?
I'm looking for a simple and quick solution to be able to write column variables quickly and be able to manage them unlimited.
Thanks
Yep there is, hum, are actually, one in '.js' as you are on v8.9.7 for FF, where you can concatenate the '!COLn' as '!COL' + 'n' as a String, and a "more powerful" one, I would think, in pure '.iim' by simply "misusing" the '!DATASOURCE_DELIMITER' Command, and changing it temporarily to some "fake" Separator to extract a complete Row with just one single '{{!COL1}}' and using 'EVAL()' + 'split()', you re-split that whole Row into all Cols...
(Index starts at "0" for 'split()'...)
I never tested though about "Speed" as you are talking about 1000 Cols. It's "instant" for about 20 Cols, I don't know for 1000 Cols...
And I also have an EnhReq about that, that you are 'encouraged' to support...!:
-
Re: List of EnhReq's...!! [by @chivracq]
=> About Item_14, the "Super Built-in Var"...!
provoquestosito wrote: ↑Thu Jul 18, 2019 6:42 pm
For tag pos i find a solution like this
Code: Select all
SET Pos 0
ADD Pos 1
TAG POS={{Pos}} TYPE=TD ATTR=TXT:Type
ADD Pos 1
TAG POS={{Pos}} TYPE=TD ATTR=TXT:Type
ADD Pos 1
TAG POS={{Pos}} TYPE=TD ATTR=TXT:Type
ADD Pos 1
TAG POS={{Pos}} TYPE=TD ATTR=TXT:Type
For Pos from 1 to 4 it's very fast to copy and paste.
I'm searching a similar solution to update {{!COLX}} values
Thanks
Yep, exactly...!, and you'll be using your 'Pos' on the Index for the 'split()[n]' + "ADD 1", only initializing your 'Pos' at "-1" for the 'ADD 1' to start at "0"...
- (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...