2014-01-12 68 views
1

我要讓腳本iMacros的設置datasoruce ts.txt我加100項COLUMN1Imacros循環和更改代理?

我想回路設置爲第1列,並完成後iMacros的清晰餅乾和改變代理?

VERSION BUILD=9052613 
TAB T=1 
FILTER TYPE=IMAGES STATUS=ON 
SET !DATASOURCE xxx.txt 
URL GOTO=http:// 
wait seconds=3 
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:/ ATTR=NAME:xxxx CONTENT={{!COL1}} 
wait seconds=3`` 
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:/ ATTR=ID:submit 
wait seconds=3 
CLEAR 

變化代理 環

+0

試圖解釋它更好的,我不明白的事 –

回答

1
SET !ERRORIGNORE YES 

SET !DATASOURCE **proxies.csv** 

SET !DATASOURCE_COLUMNS 2 

SET !LOOP 1 

SET !DATASOURCE_LINE {{!LOOP}} 

SET !TIMEOUT 60 

CLEAR 


'proxy module 

URL GOTO=about:config 

URL GOTO=javascript:var<SP>prefb<SP>=<SP>Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);var<SP>str<SP>=<SP>Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);str.data<SP>=<SP>"{{!COL1}}";prefb.setComplexValue("network.proxy.http",<SP>Components.interfaces.nsISupportsString,<SP>str); 

URL GOTO=about:config 

URL GOTO=javascript:gPrefBranch.setIntPref("network.proxy.http_port",{{!COL2}});