How to loop X/Y or pull code from datasource with iMacros

Scorpion Ghost

Elite Member
Executive VIP
Jr. VIP
Joined
Mar 22, 2013
Messages
9,143
Reaction score
10,489
I need to do one of two things with iMacros for Firefox.

Have a script change the X/Y coordinates on each loop, the coordinates to be pulled from a text file.

Example:

SET !ERRORIGNORE YES
SET !TIMEOUT_PAGE 20

SET !DATASOURCE C:\Users\USER\Documents\iMacros\Datasources\file.txt

SET !DATASOURCE_COLUMNS 2
SET !DATASOURCE_LINE {{!LOOP}}

WAIT SECONDS=5
CLICK X={{!COL1}} Y={{!COL2}}
WAIT SECONDS=5

So you see what I'm saying. Say I insert 5 rows in a text file and play my script at 5 loops, I want it to go through them one by one and use that to click the X/Y in my code.

The example above does not work.

---

If that's not possible, maybe it's possible to pull the entire line from a text file.

For example:

SET !ERRORIGNORE YES
SET !TIMEOUT_PAGE 20

SET !DATASOURCE C:\Users\USER\Documents\iMacros\Datasources\L4L1.txt

SET !DATASOURCE_COLUMNS 1
SET !DATASOURCE_LINE {{!LOOP}}

WAIT SECONDS=5
USE={{!COL1}} --------> and this pulls the entire line I need and uses it to click (CLICK X=100 Y=200)
WAIT SECONDS=5

Is it possible to do these things, or at least one of them?
 
Imacros is limited and overall its crap. Use python + selenium to automate your web tasks. You will find many tutorials on web about python. Also there are many python coders on forum including me so you can get help easily.
 
Imacros is limited and overall its crap. Use python + selenium to automate your web tasks. You will find many tutorials on web about python. Also there are many python coders on forum including me so you can get help easily.

Yeah but I already know iMacros. I don't know a single thing about snakes and minerals :D
 
Nothing stops you from learning about snakes ;) Try, if you fail you can make thread and tag me - I will give you a hand.
 
Nothing stops you from learning about snakes ;) Try, if you fail you can make thread and tag me - I will give you a hand.

Well, something does stop me. Time.

But thank you :)
 
I need to do one of two things with iMacros for Firefox.

Have a script change the X/Y coordinates on each loop, the coordinates to be pulled from a text file.

Example:



So you see what I'm saying. Say I insert 5 rows in a text file and play my script at 5 loops, I want it to go through them one by one and use that to click the X/Y in my code.

The example above does not work.

---

If that's not possible, maybe it's possible to pull the entire line from a text file.

For example:



Is it possible to do these things, or at least one of them?

you can use kantu web automation extention to do that thing with csv file they have command to read csv data it's support dektop automation also
it's also have play loop option
upload_2019-8-10_20-4-17.png
 
Learn java scripting and incorporate it with iMacros scripts.
 
Back
Top