imacros

Imacros - Invitation code missing 3 letters/numbers

本秂侑毒 提交于 2019-12-11 09:28:00
问题 IMACROS. I have to find out a invitation code to a site, it's a code that contains letters(a-z) and numbers(0-9). There are 3 missing, the XXX for exemple. But, how do I make a "for" to considerate letters and numbers on Imacros? I have to use javascript? This is the code I have: VERSION BUILD=8820413 RECORDER=FX TAB T=1 TAB CLOSEALLOTHERS URL GOTO=(url site) TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:confirmcod.php ATTR=NAME:cod CONTENT=123XXXabc TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:confirmcod

Javascript write file without overwrite

前提是你 提交于 2019-12-11 08:44:27
问题 I am using XPCOM to read/write file(s) on my hard drive (since Java is no longer supported on FF16,17,18,+ I have to use this). I use it in my FireFox extension(s) (I use iMacros). On this document click I found this example. var string = '\u5909\u63db\u30c6\u30b9\u30c8'; file.initWithPath('C:\\temp\\temp.txt'); file.create(file.NORMAL_FILE_TYPE, 0666); var charset = 'EUC-JP'; var fileStream = Components .classes['@mozilla.org/network/file-output-stream;1'] .createInstance(Components

Imacros: Random wait time?

和自甴很熟 提交于 2019-12-11 08:34:55
问题 I'm trying to make a random wait between 30 minutes to one hour. The code I'm using is supposed to do this, but after the last line of code the script simply stops. Here's the script TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:true-random-integer-generator-min CONTENT=900 TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:true-random-integer-generator-max CONTENT=3600 WAIT SECONDS=1 TAG POS=1 TYPE=SPAN ATTR=ID:true-random-integer-generator-result&&TXT:* EXTRACT=TXT SET !VAR1 {{!EXTRACT}} WAIT SECONDS={{!VAR1}} SET

Extracting Dialog Box Text in iMacros or JavaScript

北战南征 提交于 2019-12-11 08:23:25
问题 I am using iMacros 7.6.0.2 I am trying to figure how to extract text from a pop up dialog box (not one that I have created). I am using JavaScript, and SET !EXTRACTDIALOG YES doesn't work with my version of iMacros.. Upgrading isn't an option so I am wondering if there is any way to do this or if I am screwed...Thanks 回答1: http://wiki.imacros.net/Data_Extraction Check out the link above and there are few examples. URL GOTO=http://www.iopus.com/imacros/demo/v6/dialogs/javascript2.htm SET

How to set a loop in iMacros?

喜你入骨 提交于 2019-12-11 06:15:44
问题 I have written a macro given below- VERSION BUILD=844 RECORDER=CR URL GOTO=https://example.com/form.aspx WAIT SECONDS= 4 EVENT TYPE=CLICK SELECTOR="HTML>BODY>FORM>DIV:nth-of-type(4)>DIV>DIV:nth-of-type(3)>DIV>DIV>DIV>DIV:nth-of-type(4)>TABLE:nth-of-type(2)>TBODY>TR:nth-of-type(195)>TD:nth-of-type(4)>SPAN:nth-of-type(2)>I" BUTTON=0 WAIT SECONDS= 15 EVENT TYPE=CLICK SELECTOR="HTML>BODY>FORM>DIV:nth-of-type(4)>DIV>DIV:nth-of-type(3)>DIV>DIV>DIV>DIV:nth-of-type(4)>TABLE:nth-of-type(2)>TBODY>TR

iMacros / Firefox / format result

限于喜欢 提交于 2019-12-11 04:21:17
问题 I'm trying to extract some part of a website with this (simplified) code in javascript. macro2 = "CODE:"; macro2 += "TAG POS={{i}} TYPE=H2 ATTR=TXT:* EXTRACT=TXT" + "\n"; macro2 += "SAVEAS TYPE=EXTRACT FOLDER=U:\imacros FILE=test.csv" + "\n"; So, I get the right values and the are saved in the csv. So far no problem. But the markup of the website is: <h2> content </h2> So, each value in my csv is added with an extra hard return. Is there any way to avoid this? With some HTML tag stripping or

Error: Sorry, upload functionality is currently not supported in iMacros for Chrome

我怕爱的太早我们不能终老 提交于 2019-12-11 03:48:08
问题 Error: Sorry, upload functionality is currently not supported in iMacros for Chrome --------------------------Code is -------------------------- VERSION BUILD=8340723 RECORDER=CR TAG POS=1 TYPE=INPUT:FILE FORM=ACTION:upload.php ATTR=NAME:uploadFile CONTENT=C:\Dharmendra\Desktop\newfile.csv WAIT SECONDS=5 ONDOWNLOAD FOLDER=* FILE=downloadnewfile WAIT=YES TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:upload.php ATTR=* 来源: https://stackoverflow.com/questions/33515738/error-sorry-upload-functionality

imacro increase attr=id by one digit after every loop

主宰稳场 提交于 2019-12-11 02:48:32
问题 imacro - I need to increase ATTR=ID: by one after each loop TAG POS=1 TYPE=SPAN ATTR=ID:ygtvlabelel92 The ID: ygtvlabelel92 must be ygtvlabelel93 after loop and ygtvlabelel94 ....etc 回答1: set !var1 1 add !var1 {{!loop}} TAG POS=1 TYPE=SPAN ATTR=ID:ygtvlabelel9{{!var1}} 回答2: //this is the JavaScript code. You have to place this code inside .js file or it will not work var macro; macro ="CODE:"; macro +="TAG POS=1 TYPE=SPAN ATTR=ID:ygtvlabelel{{counter}}"+"\n"; //set the counter var counter=92;

IMacros with proxy script

做~自己de王妃 提交于 2019-12-11 02:24:57
问题 Is there any way where we can change proxy in iMacros Firefox extension together with checking if the proxy is running or not?? Below is the code to change proxy, but cant figure out a way to check whether the proxy is running or not? SET !ERRORIGNORE YES SET !DATASOURCE proxies.csv SET !DATASOURCE_COLUMNS 2 SET !LOOP 1 SET !DATASOURCE_LINE {{!LOOP}} SET !TIMEOUT 60 CLEAR 'proxy module URL GOTO=about:config URL GOTO=javascript:varprefb=Components.classes["@mozilla.org/preferences-service;1"]

Imacros Drop Down Menu

*爱你&永不变心* 提交于 2019-12-11 01:04:18
问题 I am using the firefox addon of imacros. From this link: http://www.youtube.com/create_account I am trying to click the month drop down menu and select a month (for example June). When I record no code shows up, so I tried writing it myself but I am stuck. I know I can right click and select inspect element and look through the markup but I don't see the names for this button. EDIT - Now offering a $5 reward through paypal to the answer that shows how to click and select a month through