imacros

How to save a variable javascript? [closed]

此生再无相见时 提交于 2019-12-25 07:00:40
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . So im running this script and i want to be able to save the variable stopNumber after the script is finished running so that the next time i run this script the saved variable stopNumber can be set to the variable loops so that i dont have to manually set it all the time. var

Datasource iMacro using %userprofile%

我是研究僧i 提交于 2019-12-25 01:49:30
问题 I'm making a script on iMacro, but i don't want put my username, so i'm trying using %userprofile% %username% %homepath% , etc. But when i run, it recognize the folder, and the location of the file dates.csv , but it says that the file was not found, and then shows a massage and the program closes. Follow bellow the iMacro code using !DATASOURCE SET !FOLDER_DATASOURCE C:\Users\%username%\Arquivos<SP>Extratos<SP>Bancos\WAS\ SET !DATASOURCE dates.csv SET !LOOP 1 SET !DATASOURCE_LINE {{!LOOP}}

imacros - read text file using javascript

こ雲淡風輕ζ 提交于 2019-12-24 08:55:38
问题 I want to read text file using javascript not using imacros loop I tried to read it using java with no luck function frdln(n){ var fr,s=''; try{ fr=new java.io.BufferedReader(new java.io.FileReader(n)); s=fr.readLine(); if(s==null){s=''}else{s=''+s}; fr.close(); fr=null; }catch(e){ alert(''+e); }; return s; }; give me message error "ReferenceError: java is not defined" Note:I installed latest version of java and the same error appear if there is any other way to read text file or fix my code

Imacros DS CMD=CLICK not working correctly

吃可爱长大的小学妹 提交于 2019-12-24 05:08:06
问题 I'm having some trouble with DS CMD=CLICK. It's only working part of the time. Here is the series of tasks I'm trying to accomplish. There is a list of addresses on the bottom third of a webpage and a map on the top two-thirds . Each address is numbered. When the address is clicked, the map centers in on the address. The bottom third with the list of addresses remains unchanged. When the map centers in on the address, I need the DS CMD=CLICK to click on the center of the screen. Once it's

Python strip every double quote from csv

别来无恙 提交于 2019-12-24 03:12:38
问题 Hi I have a csv file that looks like the following. "AB" ; "AA" ; "BA" ; "HI" "CD" ; "BB" ; "BC" ; "JK" "EF" ; "CC" ; "CE" ; "LM" "GH" ; "DD" ; "DG" ; "MN" How can I get the following code to strip off all the double quotes from every column in a csv file as for now it strips only the first column. Thanks import csv f = open("wakhawakha.csv", 'rt') try: for row in csv.reader(f, delimiter=' ', skipinitialspace=True): print('|'.join(row)) finally: f.close() 回答1: Open it and read the string

Javascript and Imacro to Open Google.com

ぐ巨炮叔叔 提交于 2019-12-23 03:09:33
问题 Ok I am pretty sure I am making some stupid mistake here. This is what I got. I want to use javascript to run an Imacro to open www.google.com. var test; test ="CODE:"; test +="SET !ERRORIGNORE YES "+"\n"; test +="URL GOTO=www.google.com "+"\n"; iimPlay(test) As per @Bestmacros I changed the code for test.js to the code shown above. Putting this into chrome and firefox simply shows me the file, putting it into IE just reloads the page. Double clicking the .js file comes up with a compiler

iMacros: user defined variables within !COLn?

左心房为你撑大大i 提交于 2019-12-23 02:39:28
问题 I'm looking for a possibility to let a user choose what column of his CSV input the script should use in the {{!COLn}} part. PROMPT "Please enter CSV column:" !VAR1 SET !DATASOURCE C:\User\Desktop\Test\testsource.csv SET !DATASOURCE_COLUMNS 100 SET !DATASOURCE_LINE {{i}} URL GOTO=http://www.somewebsite.com TAG POS=1 TYPE=BUTTON ATTR=TXT:123:<SP>* TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:NoFormName ATTR=* CONTENT={{!COLn}} TAG POS=1 TYPE=TD ATTR=TXT:{{!COLn}} n in !COLn should be set to the user

Import .CSV data into Javascript and run execute if string contains data

旧街凉风 提交于 2019-12-22 16:13:09
问题 I have a couple of iMacro-files, that is executed with a single javascript file. Very basic, looks like this. iimPlay("GoogleMacro.iim"); iimPlay("IBMMacro.iim"); iimPlay("IMDBMacro.iim"); iimPlay("AltavistaMacro.iim"); iimPlay("GametrailersMacro.iim"); iimPlay("MortalCombatMacro.iim"); iimPlay("WikipediaMacro.iim"); It is called playme.js , and works really good. Though, I don't want to run every macro each time I launch the .js file. I have a separate CSV-file, urldata.csv URLINFO,URLINFO2

How to Stop iMacros JavaScript script?

时光总嘲笑我的痴心妄想 提交于 2019-12-22 14:59:22
问题 Each time I use loops inside iMacros script the script will not stop when I press Stop button. It just skips to another loop counter and continues. So if I have one macro inside two loops like bellow: while(counter < 10) { for(var i=0; i<10; i++) { iimPlay(macro) } } I would have to press Stop couple of times until some error doesn't pop out or the counters don't stop. So how to avoid this and when I press Stop button once the script stops? 回答1: add this: main:{ while(counter<10) { for(var i

create a batch file to open firefox, then run a macro (wait for it to finish) then run another macro

依然范特西╮ 提交于 2019-12-22 08:24:50
问题 I am trying to: (1) load Firefox (2) run Iopus Imacro (.iim) - wait for this to finish, then (3) run the next macro. So far I have tried start /wait - call and as many other suggestions as I could find all over the internet and this is what I have so far (which runs flawlessly - as long as there is only one macro file (.iim) to play): @ECHO ON ECHO ECHO You have 5 sec to close this Window to prevent the Macro from running... timeout 5 ECHO Start Firefox and wait another 10 seconds... start /B