imacros

Random select drop down menu imacros

喜夏-厌秋 提交于 2020-01-05 07:50:15
问题 I am trying to figure out how to randomized a drop down menu in iMacros. This is the current script. TAG POS=1 TYPE=SELECT FORM=ACTION:/es/crear-tu-blog/ ATTR=NAME:domain CONTENT=$activos-blog.net There are like 30 alternative for this drop down menu , I want to make it select a random alternative. How can i do this?. 回答1: You need something like this: SET !VAR1 EVAL("var randomDomain=Math.floor(Math.random()*30 + 1); randomDomain;") TAG POS=1 TYPE=SELECT FORM=ACTION:/es/crear-tu-blog/ ATTR

exclude URLs when running a script

邮差的信 提交于 2020-01-05 06:02:49
问题 I am using Firefox, iMacros and js. I have a URLs.txt -file with a list of URLs. In Firefox I have a webpage open in Tab 1. This website contains many URLs. Some of which are in my text file. I am trying to create a simple script that will skip the URLs from my text file and open the other URLs each in the next tabs. 10 at once. So Tab 2-11 should be opened with new URLs that are not in my text file. This is my JavaScript, but it doesn't work: var macro; var ret; macro ="CODE:"; macro +="SET

Delete [EXTRACT] written when copying two lines Imacros

你。 提交于 2020-01-05 05:57:15
问题 adress1 adress2 When copying and pasting two lines of text as above. adress1[EXTRACT]adress2 But I would like to paste this as below. Please teach me. adress1 adress2 I am using: Chrome 70.0.3538.102 Win10_x64 imacros10.0.5forCR (free) 回答1: Yep, when doing several Extracts, iMacros will separate them using this '[EXTRACT]' Separator, that when saving the Content to a '.CSV' using the 'SAVEAS' Command, will be converted to the '.CSV' Separator, usually a Comma. Using 'EVAL()' + 'replace()'

Integrating iMacros scripts into python

喜你入骨 提交于 2020-01-04 09:04:02
问题 I'm trying to write a Python script with a GUI that, when I push a button, will execute a iMacros script. That's literally pretty much it, and after a lot of Googling and searching SO, I can't find it. I don't need help with the gui or anything, just how do I make iMacros run within/because of a python function? 回答1: import os os.system('"C:\Program Files\iOpus\iMacros\iMacros.exe" -macro my_macro.iim') http://wiki.imacros.net/Example-Batchfile.bat or import win32com.client def Hello():

imacros: javascript i get www._undefined_.com error

心不动则不痛 提交于 2020-01-03 03:08:30
问题 so when i run this macro in imacros it directs me to www. undefined .com any ideas how i can fix this? also: it directs me to the first url but when it loops the second time it gets to that site var macro; macro ="CODE:"; macro +="VERSION BUILD=8601111 RECORDER=FX"+"\n"; macro +="TAB T=1"+"\n"; macro +="TAB CLOSEALLOTHERS"+"\n"; macro +="URL GOTO={{random}}"+"\n"; var am = "www.google.com" var amc = "www.youtube.com" var amb = "www.yahoo.com" var link=[am, amc, amb]; #this is for selecting a

Firefox vs Chrome for iMacros

ε祈祈猫儿з 提交于 2020-01-02 08:11:51
问题 Which browser is better to use iMacros? I prefer the faster running one. Try to explain it as well. If it's just a quick answer please comment instead. 回答1: I use FireFox since I can use JS scripting in FireFox. So far I didn't find a way to use .js files in Chrome. With pictures disables FireFox can be just as good as Chrome. Also there is some difference in Chrome and FireFox iMacros code. So sometimes FF scripts don't work in Chrome. 回答2: I've found that Firefox is greatly faster with

Check if html element exists with iMacros and javascript

℡╲_俬逩灬. 提交于 2019-12-31 02:29:18
问题 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:/

Scraping dynamic data with imacro to excell

北城以北 提交于 2019-12-25 13:59:34
问题 I want to scrape dynamic data (refreshable every 4 seconds and it's a number ) with imacro and represent that number changing along the time in excell ( or any other way ). How can i do this ? Imacro, as further as i know can get the data but can it scrap a dynamic one . The code is from a basketball game on Flashscore ,exactly the scores table between 2 teams : Here is an example for a game table <table id="parts" class="parts-first horizontal"> <tbody> <tr class="odd"> <td class="score">

Scroll Down on a div/popup using iMacros?

北城余情 提交于 2019-12-25 08:27:41
问题 I am not able to scroll down using iMacros on the followers page on an Instagram user. The code below scrolls down the whole window, but not the popup that is under the code. URL GOTO=javascript:window.scrollBy(0,20000) I think that it is relevant to the div with the class _4gt3b, but I am not an expert and need help. the div i am trying to scroll down And here is the link of the page: https://www.instagram.com/sfktl/followers/ I have searched for this issue a lot and was not able to find any

The fixing imacros interruption with Javascript

大城市里の小女人 提交于 2019-12-25 07:18:55
问题 I am currently downloading some files from the website. Due to the large amount of data that requires millions of clicks, I choose to use iMacros to accomplished the clicks. But the website is unstable and interrupt the automatic click from time to time. I had it fix some of problems while there is still one problem remaining. The screenshot of the problem The Picture shows the problems. It just stops and do not proceed. It does not return with an error but just stops. In each specific line,