Copying something from a list.

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
deathlyreaver
Newbie
Posts: 4
Joined: Mon Jun 06, 2011 2:58 am

Copying something from a list.

Post by deathlyreaver » Tue Jun 07, 2011 1:28 am

I'm not sure quite how to put words to this, but I'll try. I would love to know how I would go about copying lists, and putting it somewhere else.
For example, lets say I have a list of numbers
1
2
3
4
5

And I want to take each one and put it in a form, but I have to do it one at a time. If I wanted to do this manually, I would copy 1, put it in the form, go down, copy 2, put it in the form, copy 3, put it in the form, etc.
I know there is a way to do this in a macro, but I'm not quite sure.

(Oh, and this time I AM actually using macro scheduler, not iMacros.)

User avatar
Marcus Tettmar
Site Admin
Posts: 7391
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Tue Jun 07, 2011 8:46 am

For this you would usually use the Separate command to split the list into an array. Then you would use a loop (e.g. Repeat/Until) to loop through the array to get each item in turn and as you do so you would use Send> to send that item to the form and probably need to do things like Press Tab to tab through each field.

Lots of examples in this forum and with the software.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

deathlyreaver
Newbie
Posts: 4
Joined: Mon Jun 06, 2011 2:58 am

Post by deathlyreaver » Thu Jun 09, 2011 5:04 am

Could you give me an example? I'm real new to this, and I have no coding experience whatsoever.

User avatar
Marcus Tettmar
Site Admin
Posts: 7391
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Thu Jun 09, 2011 7:42 am

Look at the "Separate" topic in the help file. There's an example there which is exactly what you want to do. Also search for Separate and Repeat on this site to find many other examples.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts