ChapoGuzman
BANNED
- Jun 7, 2013
- 294
- 188
Okay I need the script to loop/replay X amount of time and ever replay/loop to cycle through a csv and check if the link exist on a page if it doesnt stop and move on to the next loop (column) in the csv, but if the link does exist to just keep running the macros as normal.
here the script I came up with but you cant do it in imacros has to be ran from javascript
Reason this cant be done in regular macros is because macros doesnt allow conditional statement.
so I believe something like this will work
LOL that shows you how I know how it should work but I just aint on that level yet to do it.
I tried asking on stackoverflow but they just assume I want someone to do it for me and brushed me off which wasnt the case I was trying to learn it but it is what it is. I came to the point that this is taking to much of my time then it is worth so Im willing to pay. I can only pay $5 bucks yea I know wish I can offer more but thats all I have in paypal at the moment, but Im always doing lil work like this so im sure I will come back to your for future help/work.
anyone interested please let me know.
here the script I came up with but you cant do it in imacros has to be ran from javascript
Code:
VERSION BUILD=8601111 RECORDER=FXSET
!DATASOURCE check.csv
SET !LOOP 1
SET !DATASOURCE_COLUMNS 2
set !var1 1
add !var1 {{!loop}}
SET !DATASOURCE_LINE {{!var1}}
TAB T=1
URL GOTO=http://{{!COL1}}.blogspot.com/
TAG POS=2 TYPE=A ATTR=HREF:http://{{!COL2}}.blogspot.com/
'if the link above does not exist stop macros and move on to next loop, but if link above does exist executing macros.
URL GOTO=http://google.com/
ADD !EXTRACT {{!COL2}}
SAVEAS TYPE=EXTRACT FOLDER=c:\iMacros FILE=table.csv
Reason this cant be done in regular macros is because macros doesnt allow conditional statement.
so I believe something like this will work
Code:
VERSION BUILD=8601111 RECORDER=FXSET
!DATASOURCE check.csv
SET !LOOP 1
SET !DATASOURCE_COLUMNS 2
set !var1 1
add !var1 {{!loop}}
SET !DATASOURCE_LINE {{!var1}}
TAB T=1
URL GOTO=http://{{!COL1}}.blogspot.com/
if {
// link below exist
TAG POS=2 TYPE=A ATTR=HREF:http://{{!COL2}}.blogspot.com/
URL GOTO=http://google.com/
ADD !EXTRACT {{!COL2}}
SAVEAS TYPE=EXTRACT FOLDER=c:\iMacros FILE=table.csv
}
Else {
restart Macros to cycle the next loop in csv.
};}
LOL that shows you how I know how it should work but I just aint on that level yet to do it.
I tried asking on stackoverflow but they just assume I want someone to do it for me and brushed me off which wasnt the case I was trying to learn it but it is what it is. I came to the point that this is taking to much of my time then it is worth so Im willing to pay. I can only pay $5 bucks yea I know wish I can offer more but thats all I have in paypal at the moment, but Im always doing lil work like this so im sure I will come back to your for future help/work.
anyone interested please let me know.
Last edited: