imacros

Click a button if text exist in page with iMacros

喜你入骨 提交于 2019-12-05 02:34:28
问题 I am trying to use iMacros with Firefox to click an UnFollow button ONLY if this code exist on the page... <small class="follow-status">follows you</small> If the above does not exist in the page source then it would run this iMacros code... TAG POS=1 TYPE=DIV ATTR=TXT:UnFollow From what I have read, there is no if/else type syntax but you can run Javascript with EVAL("Javascript code here") If anyone knows how I could do this I could really use the help 回答1: You can trick Imacros to make an

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

回眸只為那壹抹淺笑 提交于 2019-12-04 16:51:30
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 automation tool. Anyone can help me "translate it" to Kantu or Selenium, for example? Would it work? I'm

iMacros Http POST to API endpoint

徘徊边缘 提交于 2019-12-03 22:43:07
问题 I want to do an HTTP POST from inside an iMacro to an API endpoint. Effectively, something like the following: curl -d "data=foo" http://example.com/API In iMacros, it might look something like this: my-imacro.iim VERSION BUILD=10.4.28.1074 TAB T=1 URL GOTO=javascript:post('http://example.com/API', {data: 'foo'}); function post(path, params, method) { // Reference: http://stackoverflow.com/a/133997/1640892 method = method || "post"; var form = document.createElement("form"); form.setAttribute

How to loop only a series of steps in iMacros

痴心易碎 提交于 2019-12-03 21:38:40
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 WAIT SECONDS={{!VAR1}} I want to loop only the last 3 steps of the script. In *.iim file you can't loop

Click a button if text exist in page with iMacros

£可爱£侵袭症+ 提交于 2019-12-03 17:22:34
I am trying to use iMacros with Firefox to click an UnFollow button ONLY if this code exist on the page... <small class="follow-status">follows you</small> If the above does not exist in the page source then it would run this iMacros code... TAG POS=1 TYPE=DIV ATTR=TXT:UnFollow From what I have read, there is no if/else type syntax but you can run Javascript with EVAL("Javascript code here") If anyone knows how I could do this I could really use the help symbiotech You can trick Imacros to make an If statement, but first you have to SET !ERRORIGNORE YES for this macro. Then: SET EXTRACT NULL

iMacro to generate random text or random number

旧街凉风 提交于 2019-12-03 12:16:40
问题 I am using iMacros for quick static form filling and is there anyway I can generate and post random text using iMacros? For example can instead of good boy in the below iMacro for Google Search can I generate random text or random number and post it as content? VERSION BUILD=8510617 RECORDER=FX TAB T=1 URL GOTO=https://www.google.com.au/ TAG POS=1 TYPE=INPUT:TEXT FORM=ID:gbqf ATTR=ID:gbqfq CONTENT=goodboy TAG POS=1 TYPE=BUTTON FORM=ID:gbqf ATTR=ID:gbqfb 回答1: random number from 1 to 10 TAB T=1

How to invoke an iMacro from JavaScript?

心不动则不痛 提交于 2019-12-03 08:30:33
I have an iMacro ' Test.iim ' and I want to play or call this iMacro from a javascript that is attached into a button click event in my webpage. Please Help with some sample code. The answer is this. iimPlay("Test.iim") When calling a macro inside a Macros folder put "" around the macro and it will play it. Also you can add timer for that macro like this. iimPlay("Test.iim",60) This means the macro has maximum 60 seconds to complete. When playing the macro which is declared as variable inside the .js file then you do it like this var test; test ="CODE:"; test +="SET !ERRORIGNORE YES "+"\n";

Click a button if text exist in page with iMacros

匿名 (未验证) 提交于 2019-12-03 07:50:05
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am trying to use iMacros with Firefox to click an UnFollow button ONLY if this code exist on the page... <small class = "follow-status" > follows you </small> If the above does not exist in the page source then it would run this iMacros code... TAG POS = 1 TYPE = DIV ATTR = TXT : UnFollow From what I have read, there is no if/else type syntax but you can run Javascript with EVAL ( "Javascript code here" ) If anyone knows how I could do this I could really use the help 回答1: You can trick Imacros to make an If statement, but first

How can i set loop iMacros by Javascript?

时光毁灭记忆、已成空白 提交于 2019-12-02 04:46:14
问题 1) I can't add set loop imacros by javascript, How can i add it ? var macro; macro = "CODE:"; macro += "VERSION BUILD=8011895" + "\n"; macro += "TAB T=1" + "\n"; macro += "SET !ERRORIGNORE YES" + "\n"; macro += "SET !EXTRACT_TEST_POPUP NO" + "\n"; macro += "SET !TIMEOUT 3" + "\n"; macro += "SET !EXTRACT NULL" + "\n"; //macro += "SET !LOOP 1" + "\n"; macro += "TAG POS={{loop}} TYPE=A ATTR=CLASS:twitter-timeline-link EXTRACT=TXT" + "\n"; macro += "SAVEAS TYPE=EXTRACT FOLDER=* FILE=twitter.csv"

iMacross script delete photos one by one

主宰稳场 提交于 2019-12-02 03:47:54
问题 this iMacross script i want to use in facebook. i want to create iMacross script that will click "Delete this photo" link, wait a second until a dialog box appear and will click "confirm" button. this is my script so far : VERSION BUILD=8820413 RECORDER=FX TAB T=1 SET !ERRORIGNORE YES SET !TIMEOUT_PAGE 1 SET !TIMEOUT_STEP 1 TAG POS=1 ATTR=TXT:Delete this photo WAIT SECONDS=3 TAG TYPE=INPUT:BUTTON ATTR=NAME:confirm WAIT SECONDS=3 but it not works and keep appear error : SyntaxError: wrong