i use imacros explorer v12.5.503 and win 10 pro x64
i use CSV for proxy DATASOURCE. some of proxies not works and get error -1350 (for server not found and for cloudflare security)
how to bypass it and macro start from the first with no increase loop number and just increase the line of proxy.csv file.
i can use the SAVEAS to save number of proxy line and use it again but i dont know how can i set if for bypass -1350 error.
i see this
viewtopic.php?f=11&t=19364&p=50151#p50151
but this is for firefox and i use imacros browser
my code logic is like this
Code: Select all
for(i=1;end=0;i++)
{end=0
if (get error -1350)
{
increase proxy line in csv(next proxy)
go to my site again
end=0
}
if (get no error and site refresh successfully end for loop)
end=1
}
if(The proxy line ended)
end macro
Code: Select all
VERSION BUILD=1010 RECORDER=CR
SET !REPLAYSPEED fast
'***add proxy line to var****
set !datasource "mcoin-pr-loop-data.txt"
set !datasource_line 1
set proxyline {{!col1}}
SET !var2 EVAL("{{!col1}}+1")
'***add loop number(next user,pass line) to var****
set !datasource "m-loop-data.txt"
set !datasource_line 1
set !loop {{!col1}}
SET !VAR0 EVAL("{{!col1}}+1")
set !WAITPAGECOMPLETE no
SET !EXTRACT_TEST_POPUP NO
SET !TIMEOUT_STEP 30
set !datasource "m proxy.csv"
set !datasource_line {{proxyline}}
SET !ERRORIGNORE no
PROXY ADDRESS={{!COL1}}:{{!col2}}
URL GOTO=target site
'**********i want this code: if proxy don't work(error= -1350) go to next proxy line and refresh page*************
set !datasource "m userpass.csv"
set !datasource_line {{!loop}}
SET !REPLAYSPEED MEDIUM
TAG POS=2 TYPE=A ATTR=TXT:Registration
wait seconds=1
TAG POS=2 TYPE=INPUT:EMAIL ATTR=NAME:email CONTENT={{!col1}}{{!col2}}
SET !ENCRYPTION NO
set !datasource_line 1
TAG POS=1 TYPE=INPUT:PASSWORD ATTR=NAME:password CONTENT={{!col3}}
TAG POS=1 TYPE=BUTTON:SUBMIT ATTR=TXT:Registration
set !WAITPAGECOMPLETE yes
TAG POS=1 TYPE=BUTTON ATTR=TXT:Start&&CLASS:"button_white start-mining"&&DATA-CHAIN:DOGE
'**************this lines save proxy line to txt for next use******************
FILEDELETE NAME=C:\Users\mv\Documents\iMacros\DataSources\mcoin-pr-loop-data.txt
wait seconds=1
add !extract {{!var2}}
add !extract {{!NOW:mm/dd/yyyy}}
add !extract {{!NOW:hh:nn:ss}}
SAVEAS TYPE=EXTRACT FOLDER=C:\Users\mv\Documents\iMacros\DataSources FILE=mcoin-pr-loop-data.txt
'****************
'**************this lines save loop number to txt for next use******************
FILEDELETE NAME=C:\Users\mv\Documents\iMacros\DataSources\m-loop-data.txt
wait seconds=1
add !extract {{!var0}}
add !extract {{!NOW:mm/dd/yyyy}}
add !extract {{!NOW:hh:nn:ss}}
SAVEAS TYPE=EXTRACT FOLDER=C:\Users\mv\Documents\iMacros\DataSources FILE=m-loop-data.txt
'****************
TAG POS=1 TYPE=STRONG ATTR=* EXTRACT=TXT
TAG POS=1 TYPE=H3 ATTR=CLASS:"total gh" EXTRACT=TXT
add !extract {{!NOW:mm/dd/yyyy}}
add !extract {{!NOW:hh:nn:ss}}
SAVEAS TYPE=EXTRACT FOLDER=* FILE=m-ex-data.txt
TAG POS=1 TYPE=A ATTR=TXT:Exit