I want iMacros to start (for the first run) with a value 1, then increase by 1 on every loop like normal. however, if I hit stop on accident or the webpage closes, I want to be able to open up the iMacros and have it continue at the number that it left off on. How would I go about doing that?
Ex. Go to google and have it search the number 1. On loop, increase by 1 to searching for 2. Increase for 3, 4, etc. Firefox closes or Stop is pressed (let's say at #50), leading to me having to begin again. When I hit start iMacros continues from 50 and keeps on going.
Possible? I've been fiddling with different things all night and here's what I have so far:
Code: Select all
VERSION BUILD=6251204 RECORDER=FX
CMDLINE !DATASOURCE test2.txt
SET !DATASOURCE_COLUMNS 1
SET !DATASOURCE_LINE {{!LOOP}}
SET !VAR1 {{!COL1}}
ADD !VAR1 1
ADD !EXTRACT {{!VAR1}}
SAVEAS TYPE=EXTRACT FOLDER=C:\Users\jytrewer\Documents\iMacros\Datasources FILE=test2.txt
TAB T=1
URL GOTO=http://www.google.com/
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:f ATTR=NAME:q CONTENT={{!COL1}}
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:f ATTR=NAME:btnG&&VALUE:Google<SP>Search
WAIT SECONDS=2