2014-01-12 2 views
1

나는 datasoruce ts.txt를 설정하기 위해 스크립트를 만들고 싶습니다. 그리고 나는 100 개의 항목을 추가했습니다 .1Imacros 루프 및 변경 프록시?

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}});