imacros

imacros javascript multiple for loops inner loop process extract data

早过忘川 提交于 2019-12-07 18:55:03
问题 i am trying to figureout a way to loop all countries. I have below script it has 3 loops.Loop # 2, 3 working fine. but Loop #1 is not. here is the logic - main alexa site www.alexa.com/topsites/countries and this has multiple countries each country has a 2 charecter suffix. for each country number is prefixing to get country listing. process: 1. loop#1 go to www.alexa.com/topsites/countries and loop all countries.(this part does not work) 2.loop#2 for each country loop all pages(this part

iMacros wait until page loads

て烟熏妆下的殇ゞ 提交于 2019-12-07 00:51:40
问题 I used to use iMacros all the time and to make the macro wait for the page to load it was as simple as: SET !WAITPAGECOMPLETE YES However now this doesn't work and it seems from the iMacros website http://wiki.imacros.net/!WAITPAGECOMPLETE that this feature isn't even compatible with Firefox anymore. What is an alternative way of doing this other than waiting a specified amount of time? Surely there must be, why would subsequent version regress? Thanks in advance P.S. Reverting back to IE is

How to Stop iMacros JavaScript script?

大城市里の小女人 提交于 2019-12-06 14:07:27
Each time I use loops inside iMacros script the script will not stop when I press Stop button. It just skips to another loop counter and continues. So if I have one macro inside two loops like bellow: while(counter < 10) { for(var i=0; i<10; i++) { iimPlay(macro) } } I would have to press Stop couple of times until some error doesn't pop out or the counters don't stop. So how to avoid this and when I press Stop button once the script stops? add this: main:{ while(counter<10) { for(var i=0;i<10;i++) { var ret=iimPlay(macro); if (ret == -101){break main;} // abort script if user presses Stop

IMacro Scripting - How to read a local .txt file using javascript

冷暖自知 提交于 2019-12-06 13:19:42
There is this IMacro scripting tool, if you want to automate some web page visits by using javascript. I would like to have my javascript to read from a local .txt file (not a .cvs file and not well formatted.. I would like to search in it probably with a regular expression..) and based on that reading, the script will do some job in IMacros.. (e.g call some web site url etc..) Do you guys have any idea how this can be done ? I am doing everything local and that is my local browser reading from my local hard drive.. it should be somehow possible.. but how ? Yes you can do it with imacros, but

Import .CSV data into Javascript and run execute if string contains data

只谈情不闲聊 提交于 2019-12-06 11:58:22
I have a couple of iMacro-files, that is executed with a single javascript file. Very basic, looks like this. iimPlay("GoogleMacro.iim"); iimPlay("IBMMacro.iim"); iimPlay("IMDBMacro.iim"); iimPlay("AltavistaMacro.iim"); iimPlay("GametrailersMacro.iim"); iimPlay("MortalCombatMacro.iim"); iimPlay("WikipediaMacro.iim"); It is called playme.js , and works really good. Though, I don't want to run every macro each time I launch the .js file. I have a separate CSV-file, urldata.csv URLINFO,URLINFO2,DATA1,DATA2 http://google.com,GOOGLE,"hello","thank you for searching" http://ibm.com,IBM,null,null

Convert iMacros script into another free automation tool like Kantu or Selenium?

依然范特西╮ 提交于 2019-12-06 09:57:41
问题 I'm trying to create a script to perform mass actions on a personal account (context not relevant, I think). I figured a way to do it using this script for iMacros and it was working. However, I needed to add a new variable to have a random delay between actions instead of having a fixed "WAIT SECONDS". Since I'm using the free version of iMacros, this doesn't work because it's using more than 3 variables :( Now, problem is, I have no idea how to convert this script into another browser

is this possible in imacros javascript ? tried many ways not successful

偶尔善良 提交于 2019-12-06 08:17:35
i did everything handled. but no luck it is returning "undefined" data. i tried many differnt ways to get data from this site. not successful. I posted this in other forums no one able to solve this to handle full data extract. i need data saved like this 91.228.53.28:8089 one per line all rows. var jsLF="\n"; var ret,ret1,ret2,ret3,ret_val; var p1; //open url p1 = "CODE:"; p1 += "URL GOTO=http://www.proxynova.com/proxy-server-list/country-de/" + jsLF; var p2; //extract 1st value ip save to tmp VAR1 p2 = "CODE:"; p2 += "SET !VAR1 {{!EXTRACT}}" + jsLF; p2 += "TAG POS={{i}} TYPE=TD ATTR=*

Launch macros one by one from a batch file

萝らか妹 提交于 2019-12-06 07:48:36
问题 In Firefox, Using Imacros, I would like to launch multiple macros from a batch file but here is the problem: I want them to run one by one. So first 'Macro 1' will run then after it completes, 'Macro 2' will run and so on till 'Macro 7'. My BATCH CODE: cd C:\Program Files\Mozilla Firefox start firefox.exe ping -n 05 127.0.0.1>nul start firefox.exe imacros://run/?m=NAMEofMACRO.iim Imacros VERSION BUILD=7601105 回答1: Just change your macro line to use the start switch /wait start /wait firefox

Firefox vs Chrome for iMacros

风格不统一 提交于 2019-12-06 00:50:52
Which browser is better to use iMacros? I prefer the faster running one. Try to explain it as well. If it's just a quick answer please comment instead. I use FireFox since I can use JS scripting in FireFox. So far I didn't find a way to use .js files in Chrome. With pictures disables FireFox can be just as good as Chrome. Also there is some difference in Chrome and FireFox iMacros code. So sometimes FF scripts don't work in Chrome. I've found that Firefox is greatly faster with iMacros than Chrome. I use Chrome for 90% of all my tasks, but when doing something macro-heavy, I use Firefox. 来源:

How to loop only a series of steps in iMacros

99封情书 提交于 2019-12-05 06:16:03
问题 I have a 10 step iMacro script that is set to loop 500 times via the Play (Loop) button. The thing is, I only want steps 5-10 looped. The partial goal is to avoid the " URL GOTO= " step. Thank you for your time. Here's what it looks like: VERSION BUILD=8300326 RECORDER=FX SET !ERRORIGNORE YES SET !TIMEOUT_STEP 20 SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*13 + 6); randomNumber;") TAB T=1 TAG POS={{!LOOP}} TYPE=INPUT:SUBMIT ATTR=VALUE:value TAG POS=R1 TYPE=SPAN ATTR=TXT:text