imacros function iimPlay()


SUBMITTED BY: dax74

DATE: Jan. 24, 2017, 11:34 p.m.

FORMAT: Text only

SIZE: 1.8 kB

HITS: 109646

  1. iimPlay(part2); // at this point the proxy connection is established
  2. iimPlay("C:\Users\Libertad\Documents\iMacros\Macros\test.iim");
  3. var macro = "CODE:";
  4. macro += "VERSION BUILD=8940826 RECORDER=FX" + "\n";
  5. macro += "SET !ERRORIGNORE YES" + "\n";
  6. macro += "TAB T=1" + "\n";
  7. macro += "CLEAR" + "\n";
  8. macro += "SET !FILESTOPWATCH mydata.csv" + "\n";
  9. macro += "STOPWATCH ID=total" + "\n";
  10. macro += "SET !DATASOURCE C:\\proxies.csv" + "\n";
  11. macro += "SET !DATASOURCE_COLUMNS 1" + "\n";
  12. macro += "SET !LOOP 1" + "\n";
  13. macro += "SET !VAR9 {{rnd}}" + "\n";
  14. macro += "SET !DATASOURCE_LINE {{!VAR9}}" + "\n";
  15. macro += "SET !TIMEOUT 30" + "\n";
  16. macro += "PROXY ADDRESS={{!COL1}}" + "\n";
  17. macro += "URL GOTO=http://www.alterweb.ca/ip.php?csv=ligne{{!VAR9}}" + "\n";
  18. macro += "WAIT SECONDS=3" + "\n";
  19. var part2 = "CODE:";
  20. part2 += "VERSION BUILD=8940826 RECORDER=FX" + "\n";
  21. part2 += "SET !ERRORIGNORE YES" + "\n";
  22. part2 += "SET !DATASOURCE C:\\proxies.csv" + "\n";
  23. part2 += "SET !DATASOURCE_COLUMNS 1" + "\n";
  24. part2 += "SET !DATASOURCE_LINE {{line}}" + "\n";
  25. part2 += "PROXY ADDRESS={{!COL1}}" + "\n";
  26. part2 += "WAIT SECONDS=6" + "\n";
  27. var big_count=parseFloat(prompt("loops=?",1000));
  28. var fichier=parseFloat(prompt("fichier imacro","C:\\Users\\Libertad\\Documents\\iMacros\\Macros\\test.iim"));
  29. for(var x=0;x<big_count;x++)
  30. {
  31. var rand=Math.floor(Math.random()*2000 + 1);
  32. iimSet("rnd",rand);
  33. iimPlay(macro);
  34. if(window.content.document.body.textContent.contains('proxy'))
  35. {
  36. //if proxy word found
  37. iimSet("line",rand);
  38. iimPlay(part2); // at this point the proxy connection is established
  39. iimPlay("C:\Users\Libertad\Documents\iMacros\Macros\test.iim");
  40. }
  41. else
  42. {
  43. //if proxy word isn't found
  44. }
  45. }

comments powered by Disqus