imacros

Using javascript how to break the while loop after a set time? [duplicate]

守給你的承諾、 提交于 2019-12-11 00:08:53
问题 This question already has answers here : Leave a loop after 2 seonds (3 answers) Closed last year . I have a while loop which looks like this: while(s1 != "#EANF#") { iimPlay("CODE:REFRESH"); iimPlay("CODE:TAG POS=1 TYPE=* ATTR=TXT:Contacted:* EXTRACT=TXT") var s1 = iimGetLastExtract(); } it will refresh the web page until it finds what it wants. However sometimes it becomes an infinite loop and I want to simply set a timer so that it would break the while loop and carry on. I tried looking

How to use JavaScript in imacros?

亡梦爱人 提交于 2019-12-08 23:27:51
问题 I can't figure out how to use imacros with JavaScript. I have looked at their Help, have seen countless examples here on Stack Overflow, but don't know what am missing. It has not been explained clearly anywhere. Here is what I tried: Used the example explained in their help file here: http://wiki.imacros.net/JavaScript But nothing happens when I click the ' Click Here to Run ' link (even in IE with ActiveX). NOTE: I don't have imacros for IE - the example shown above has image of the macro

How to use iMacros with logic like if/else for instagram?

偶尔善良 提交于 2019-12-08 12:48:29
问题 I am using iMacros for instagram automation to create an auto-follower. I go to the hashtag section, then go to most recent, and I want to follow anyone in the "most recent section" that I am not already following. This is what I have: VERSION BUILD=844 RECORDER=CR URL GOTO=https://www.instagram.com/p/BRvYjUPjB7m/?tagged=scootershop TAG POS=1 TYPE=BUTTON ATTR=TXT:Follow TAG POS=1 TYPE=A ATTR=TXT:Next TAG POS=1 TYPE=BUTTON ATTR=TXT:Follow TAG POS=1 TYPE=A ATTR=TXT:Next TAG POS=1 TYPE=BUTTON

Fill up fields with random names with iMacro

家住魔仙堡 提交于 2019-12-08 11:44:54
问题 I currently use iMacro for Firefox for quick form filling with random letters. SET !VAR1 EVAL("var letters = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','w','x','y','z']; var string = ''; for(var i = 0; i < 11; i++){string += letters[parseInt(Math.random() * 25)]}; string") EVENT TYPE=CLICK SELECTOR="#namex" BUTTON=0 EVENTS TYPE=KEYPRESS SELECTOR="#namex" CHARS="{{!var1}}" Result is e.g. adionudmeai . I have a text file that containing one hundred

imacros how do I play another javascript file after finish running a javascript function

怎甘沉沦 提交于 2019-12-08 11:42:27
问题 I created a javascript file with codes in it and is working fine on imacros. but the thing is I need to execute another javascript function on another javascript file. i tried different things but I can't make it work. my script is something like this myfunction (); iimPlay (anotherFIle.js); so my function plays some code that I did which is working fine. But when it's time to execute anotherFile.js it doesn't seems to work. 回答1: You can add anotherFIle.js to bookmarks and then call it by

Can't open iMacros on a 64 bit machine

纵饮孤独 提交于 2019-12-08 10:17:39
问题 I have a macro that works fine on 32 bit machines. When trying to run it on a 64 bit machine, I get a error message (ActiveX component can't create object) when it hits this line of code: Set iim1 = CreateObject("iMacros") Up until now, all of these macros have been run on 32 bit machines. 64 machines are just begging to appear in our environment. Any ideas or suggestions on how to resolve this issue would be greatly appreciated. Thanks for the help........ 来源: https://stackoverflow.com

How To Extract Text using CSS Selectors in iMacros?

岁酱吖の 提交于 2019-12-08 09:18:34
问题 In this simple piece of HTML, I want to extract "Chris" : <div class="iwrite-in"> <h1>My name is <strong>Chris</strong> Rock </h1> <p>etc</p> </div> I managed to select the text : EVENT TYPE=DBLCLICK SELECTOR="#iwe-form>DIV>DIV>H1>STRONG" BUTTON=0 But I can't extract it. Thanks for helping to Extract a Text based on its CSS . 来源: https://stackoverflow.com/questions/33171119/how-to-extract-text-using-css-selectors-in-imacros

How to extract javascript variable value using imacros browser?

谁说胖子不能爱 提交于 2019-12-08 07:54:14
问题 I have looked but I simply cannot find an answer to what I expect should be a very simple task. I have navigated to a page that contains a known javascript variable. eg: var foo='my variable text'; How can I extract that value ('my variable text') using iMacros browser? Is that even possible to do directly? Or, would I have to execute javascript to place that variable's value into an input or tag, that iMacros can then extract from? Many thanks in advance. 回答1: You can use the URL GOTO method

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

限于喜欢 提交于 2019-12-08 02:02:55
问题 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

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

你。 提交于 2019-12-08 01:16:07
问题 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