imacros

iMacross script delete photos one by one

本小妞迷上赌 提交于 2019-12-02 01:20:46
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 format of TAG command, line 6 (Error code: -910) can anyone help? UPDATE The worked code is here for

How can i set loop iMacros by Javascript?

我是研究僧i 提交于 2019-12-02 00:23:16
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" + "\n"; var extractedtext=iimGetLastExtract(); iimPlay(macro); 2) How can i use that code on imacros

Check if html element exists with iMacros and javascript

眉间皱痕 提交于 2019-12-01 20:35:30
I want to check if an HTML element exist with iMacros. If it does, I want to go to a URL. If not, I want to go to other URL. Because iMacros doesn't have statements, I used javascript with the iMacros' EVAL. Here is the line that handles the javascript execution: SET !VAR3 EVAL("var element = window.content.document.getElementById(\"some_element\"); if (typeof(element) != 'undefined' && element != null) { var redirect = 'http://192.168.178.22/sc/report.php'; } else { var redirect = 'http://192.168.178.22/sc/index.php?action=connect'; } redirect; ") *It's all in one line, but I formatted it for

iMacros Http POST to API endpoint

走远了吗. 提交于 2019-12-01 00:55:47
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("method", method); form.setAttribute("action", path); for (var key in params) { if (params

How to use JavaScript in imacros?

末鹿安然 提交于 2019-11-30 08:59:39
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 start in IE, but run in Firefox. And no further explanation.. Tried to import a JS file into imacros,

imacros: submitting textarea form (enter key maybe?)

ⅰ亾dé卋堺 提交于 2019-11-29 17:45:12
Question: How to simulate an ENTER (to submit a text in a live chat)? (if there is an alternative to using the ENTER key, like using javascript in imacros to trigger an event, that would be great too) Explanation: I am trying to submit a comment in a live chat that uses a <textarea> element for input. Here is the source code: <form class="chatbox nolabel"> <textarea class="textbox" type="text" size="70" autocomplete="off" name="message" style="resize: none; overflow-y: hidden;"></textarea> </form> I have attempted various different approaches of inputting the word "hello" and pressing the

imacros: submitting textarea form (enter key maybe?)

浪尽此生 提交于 2019-11-28 12:25:05
问题 Question: How to simulate an ENTER (to submit a text in a live chat)? (if there is an alternative to using the ENTER key, like using javascript in imacros to trigger an event, that would be great too) Explanation: I am trying to submit a comment in a live chat that uses a <textarea> element for input. Here is the source code: <form class="chatbox nolabel"> <textarea class="textbox" type="text" size="70" autocomplete="off" name="message" style="resize: none; overflow-y: hidden;"></textarea> <

include jQuery into javascript and use it in imacros ?

柔情痞子 提交于 2019-11-28 10:33:07
I want to know how can I include jQuery library into javascript and use it in iMacros? It goes like this. Into .js file I declare iMacros code as a variable var someMacro; someMacro ="CODE:"; someMacro +="TAB T=1 \n"; The code is actually larger and this is just small example. After I declared the variable I use commands like iimPlay, iimSet etc. to play the macro and set the variables inside the macro. Now how can I include jQuery library into this so that I can use jQuery inside .js file and enhance my scripts ? P.S. I found this on their forum but it didn't help me much since I didn't

How to automate saving webpages?

≡放荡痞女 提交于 2019-11-27 09:53:00
I need to archive several hundred webpages in the style of what browsers call "Save as, complete", meaning they save an HTML file for the page itself along with a folder full of other files needed to render the page correctly, such as CSS, JS, and image files. This allows the pages to be viewed offline looking the same as when displayed online. Here are the methods I've tried and the problems with each: Manual process in Firefox : On the link for the next page, right click. Type "A" for "Save link location" to copy the destination URL to the clipboard. Click the link to go to the page. Type

Loop in Imacros using Javascript

一个人想着一个人 提交于 2019-11-26 23:16:41
how can i loop imm(imacros) script with javascript I searched a little bit and found this: for (i = 0; i < n; i++) { iimPlay(marconame.iim); } but when i use it my browser(Firefox 18) hangs :\ for (i = 0; i < n; i++) { iimPlay("macroname.iim"); } There is this option too. var macro; macro ="CODE:"; macro +="TAG POS=1 TYPE=DIV ATTR=CLASS:some_class" var n=10; for(var i=0;i<n;i++) { iimPlay(macro) } In codes above n is not defined so it will return an error. 来源: https://stackoverflow.com/questions/14909553/loop-in-imacros-using-javascript