I don't Wanna loop only a part of the script

Discussions and Tech Support specific to the iMacros Firefox add-on.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
dy4e
Posts: 2
Joined: Tue Jul 09, 2019 5:05 am

I don't Wanna loop only a part of the script

Post by dy4e » Tue Jul 09, 2019 5:25 am

Hello

In my Script there is two part :

1- in the first part I'm gonna collect some informations from a table X and I m gonna save them as a CSV. so this part I want it to be fix, without a loop.

2- so then I need to loop on a specific column EX: {{!col4}};
so I collect the emails from it; and I'll send them a message to each one.

Regards,
chivracq
Posts: 9371
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: I don't Wanna loop only a part of the script

Post by chivracq » Tue Jul 09, 2019 5:40 am

dy4e wrote:
Tue Jul 09, 2019 5:25 am
Hello

In my Script there is two part :

1- in the first part I'm gonna collect some informations from a table X and I m gonna save them as a CSV. so this part I want it to be fix, without a loop.

2- so then I need to loop on a specific column EX: {{!col4}};
so I collect the emails from it; and I'll send them a message to each one.

Regards,
Then loopa tha whola Scripta...! :roll:
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE').
- I don't even read the Qt if that (required) Info is not mentioned...!
- Script & URL help a lot for more "educated" Help...
dy4e
Posts: 2
Joined: Tue Jul 09, 2019 5:05 am

Re: I don't Wanna loop only a part of the script

Post by dy4e » Tue Jul 09, 2019 6:09 am

chivracq wrote:
Tue Jul 09, 2019 5:40 am
dy4e wrote:
Tue Jul 09, 2019 5:25 am
Hello

In my Script there is two part :

1- in the first part I'm gonna collect some informations from a table X and I m gonna save them as a CSV. so this part I want it to be fix, without a loop.

2- so then I need to loop on a specific column EX: {{!col4}};
so I collect the emails from it; and I'll send them a message to each one.

Regards,
Then loopa tha whola Scripta...! :roll:
Hey Bro,
Thank You for Replying

but as u see it's my first time here, it's my first comment :)

I use iMacros for Firefox 9.0.3 on Windows 10 , iMacros Last Update june 22, 2019

Code: Select all

[u]Here's the first part downloading the CSV File:[/u]

TAG POS=5 TYPE=DIV ATTR=TXT:Instance<SP>List<SP>Tools<SP>Print<SP>Copy<SP>PDF<SP>CSV*
wait seconds=1
TAG POS=1 TYPE=SPAN ATTR=TXT:Tools
wait seconds=1
ONDOWNLOAD FOLDER=* FILE="Mails" WAIT=YES
wait seconds=1
TAG POS=1 TYPE=A ATTR=TXT:CSV
wait seconds=4

[u]The Second Part:[/u]

SET !DATASOURCE "C:\Users\dy4e\Documents\iMacros\Downloads\Mails.csv"
SET !LOOP 2
SET !DATASOURCE_LINE {{!LOOP}}
SET !TIMEOUT_PAGE 1


TAB T=1
TAB OPEN
TAB T=2
URL GOTO=https://mail.google.com/mail/u/0/h/kdgpxmg6sl3r/?&
wait seconds=3
TAG POS=1 TYPE=A ATTR=TXT:Compose<SP>Mail
wait seconds=1
TAG POS=1 TYPE=TEXTAREA FORM=NAME:f ATTR=ID:to CONTENT={{!col4}}
wait seconds=1
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:f ATTR=NAME:subject CONTENT="My Message"
wait seconds=1
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:f ATTR=NAME:nvp_bu_send
wait seconds=2
kangarootaco
Posts: 17
Joined: Fri Sep 20, 2013 3:46 pm

Re: I don't Wanna loop only a part of the script

Post by kangarootaco » Tue Jul 09, 2019 8:59 pm

chivracq
Posts: 9371
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: I don't Wanna loop only a part of the script

Post by chivracq » Wed Jul 10, 2019 3:00 am

dy4e wrote:
Tue Jul 09, 2019 6:09 am
Hey Bro,
Thank You for Replying

but as u see it's my first time here, it's my first comment :)

I use

Code: Select all

iMacros for Firefox 9.0.3 on Windows 10 , iMacros Last Update june 22, 2019

Code: Select all

[u]Here's the first part downloading the CSV File:[/u]

TAG POS=5 TYPE=DIV ATTR=TXT:Instance<SP>List<SP>Tools<SP>Print<SP>Copy<SP>PDF<SP>CSV*
wait seconds=1
TAG POS=1 TYPE=SPAN ATTR=TXT:Tools
wait seconds=1
ONDOWNLOAD FOLDER=* FILE="Mails" WAIT=YES
wait seconds=1
TAG POS=1 TYPE=A ATTR=TXT:CSV
wait seconds=4

[u]The Second Part:[/u]

SET !DATASOURCE "C:\Users\dy4e\Documents\iMacros\Downloads\Mails.csv"
SET !LOOP 2
SET !DATASOURCE_LINE {{!LOOP}}
SET !TIMEOUT_PAGE 1

TAB T=1
TAB OPEN
TAB T=2
URL GOTO=https://mail.google.com/mail/u/0/h/kdgpxmg6sl3r/?&
wait seconds=3
TAG POS=1 TYPE=A ATTR=TXT:Compose<SP>Mail
wait seconds=1
TAG POS=1 TYPE=TEXTAREA FORM=NAME:f ATTR=ID:to CONTENT={{!col4}}
wait seconds=1
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:f ATTR=NAME:subject CONTENT="My Message"
wait seconds=1
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:f ATTR=NAME:nvp_bu_send
wait seconds=2
kangarootaco wrote:
Tue Jul 09, 2019 8:59 pm
Then you don't wanna read this: https://wiki.imacros.net/Loop_after_Query_or_Login
Ya, den da Bro willa gotta wanna gonna o' wadeva betta reada som' pieca Doc in da Wiki... :wink:
Slowla feela lika be in da Savannah toka da Krokodila & Antilopa... (Da ken alles ofa '.VBS' Scripta fe sha...!) 8)

And hum, @kangarootaco, you are not using the Forum much-much "better"...: All your Threads since 2015 have been waiting (hum, for 4 years now) for some Follow-up from you, oops...! :shock:
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE').
- I don't even read the Qt if that (required) Info is not mentioned...!
- Script & URL help a lot for more "educated" Help...
Post Reply