imacros

Regular iMacros transform into JavaScript but still not Work

白昼怎懂夜的黑 提交于 2019-12-12 05:51:36
问题 I do not understand iMacros, and beginners. Actually there are regular iMacro script is working properly, but I want to make into JavaScript as needed can be looping up to 17 pages (total page) where each page there are 10 rows of data to be extracted. Here's what I tried but have not succeeded. Please help, thank you. for(var PAGE = 1; PAGE <= 17; PAGE++) { iimSet("page", PAGE) iimPlay('CODE:'+'SET !TIMEOUT_PAGE 50'+'\nURL GOTO=http://www.somebody-is-you.com/s/{{page}}?lim=10&reg_code=JINNY'

imacros extract and remove unwanted text

徘徊边缘 提交于 2019-12-12 03:37:42
问题 Hi Im trying to extract a price and strip the extract of some unwanted text. So that "US $149.99" becomes "149.99" TAG POS=1 TYPE=SPAN FORM=NAME:donasub ATTR=ID:donaprice EXTRACT=TXT SET donaprice EVAL("var s=\"{{!EXTRACT}}\"; s.replace(\"US $\", \"\");") SAVEAS TYPE=EXTRACT FOLDER=C:\demo FILE=donafiles.csv I still get the full string "US $149.99" in the extract. What am I not doing right. 回答1: You need to escape special characters with \\ . In this case it is "$" SET donaprice EVAL("var s=\

How to correctly use loop

不打扰是莪最后的温柔 提交于 2019-12-12 03:24:47
问题 I have macros that invites friends to FB groups, friends name is taken from CSV file, so i need write loop, than will invites all people from csv file . Here is my macros var macro,start; macro = "CODE:"; macro += "SET !ERRORIGNORE YES" + "\n"; macro += "SET !EXTRACT_TEST_POPUP NO" + "\n"; macro += "SET !DATASOURCE FB<SP>Groups.csv" + "\n"; macro += "SET !DATASOURCE_COLUMNS 1000" + "\n"; macro += "SET !LOOP 1" + "\n"; macro += "SET !DATASOURCE_LINE {{!LOOP}}" + "\n"; macro += "URL GOTO=" + "

Change focus on tab javascript imacros

爷,独闯天下 提交于 2019-12-12 03:15:27
问题 This code is not working, how do i switch the focus on a tab. Is there another way? var tabOne; tabOne = "CODE:"; tabOne += "TAB T=1"; iimPlay(tabOne); 回答1: I figured it out... var mainWindow = window.QueryInterface(Components.interfaces.nsIInterfaceRequestor) .getInterface(Components.interfaces.nsIWebNavigation) .QueryInterface(Components.interfaces.nsIDocShellTreeItem) .rootTreeItem .QueryInterface(Components.interfaces.nsIInterfaceRequestor) .getInterface(Components.interfaces.nsIDOMWindow

How to use Imacros to remove a part of element inspector?

回眸只為那壹抹淺笑 提交于 2019-12-12 03:03:38
问题 I have an element inspector script like this: enter image description here I want to use Imacros to remove " display: none; ", Please help me! 回答1: This may help you: URL GOTO=javascript:{document.getElementById("g-recaptcha-response").style.display="";undefined;} 来源: https://stackoverflow.com/questions/38204689/how-to-use-imacros-to-remove-a-part-of-element-inspector

iMacros javascript nested loops in firefox

半城伤御伤魂 提交于 2019-12-12 02:56:42
问题 I have 2 macros I need to run in Firefox. They both run perfectly as iim's but I need to get them to run together Macro1: It reads a text file with a number of links on it, loads the link, and moves on to the next var macro1 = "CODE:"; macro1 += "VERSION BUILD=8300326 RECORDER=FX" + "\n"; macro1 += "" + "\n"; macro1 += "SET !DATASOURCE C:\\Users\\user1\\Documents\\REPORT_LINK_EXT_OBG.TXT" + "\n"; macro1 += "SET !DATASOURCE_LINE {{!LOOP}}" + "\n"; macro1 += "URL GOTO={{!COL1}}" + "\n"; Macro2:

Jacob: com.jacob.com.ComFailException: Can't co-create object

回眸只為那壹抹淺笑 提交于 2019-12-12 02:48:58
问题 I am facing exception Exception in thread "main" com.jacob.com.ComFailException: Can't co-create object while running the code below. I checked online for help. Some sites say that I need to register my dll. I tried registering using regsvr32.exe . But I am unable to register successfully. Getting below popup. The module "jacob-1.18-M2-x64.dll" was loaded but the entry-point DllRegisterServer was not found.Make sure that "jacob-1.18-M2-x64.dll" is a valid DLL or OCX file and then try again.

imacros javascript return top

泪湿孤枕 提交于 2019-12-12 02:48:37
问题 I'm writing a imacros script using javascript and I've a problem. var result = ""; var Loop = 1; while(true) { iimSet("Loop",Loop); var macro; macro="CODE:"; macro +="SET !DATASOURCE site.csv" + "\n"; macro +="SET !DATASOURCE_LINE {{Loop}}" + "\n"; macro +="URL GOTO=https://www.google.com/search?q={{!COL1}}" + "\n"; macro +="WAIT SECONDS=1" + "\n"; iimPlay(macro); var ret_code = iimPlay("CODE:TAG POS=1 TYPE=DIV ATTR=ID:resultStats"); if(ret_code<0){break;} ret_code = iimPlay("CODE:TAG POS=1

IF and ELSE - IMACROS

邮差的信 提交于 2019-12-12 02:44:48
问题 TAG POS=1 TYPE=A ATTR=TXT:next FRAME F=1 WAIT SECONDS=3 TAG POS=1 TYPE=A ATTR=TXT:Contact FRAME F=0 WAIT SECONDS=7 How do I insert a condition in ATTR: Contact? I would check if the open page has Contact link, Contact us link , Help link, etc. If the page does not have any of the links go to the end 回答1: As a workaround you may try the !ERRORIGNORE variable. Something like this: TAG POS=1 TYPE=A ATTR=TXT:next FRAME F=1 WAIT SECONDS=3 SET !ERRORIGNORE YES TAG POS=1 TYPE=A ATTR=TXT:Contact SET

loop with FireFox imacros Addon

本小妞迷上赌 提交于 2019-12-12 01:45:38
问题 Is there any solution to use imacros scripting functions ( iimset , iimplay ,...) without imacros.exe and only with FireFox imacros Addon ? Indeed, I need to loop through csv datas and play macros for regular use so free version is not a reliable solution and the full version is out of my budget. Thanks for your help. 来源: https://stackoverflow.com/questions/38567195/loop-with-firefox-imacros-addon