HELP NEEDED: Copy list of numbers and Paste one-by-one

Hi Maestros’

How can I copy list of numbers and paste them one-by-one with an “enter” in between.
Let’s say I hava a list:
or list 11111111 22222222 33333333 44444444 55555555
I need to copy this list and paste it as:
11111111 + ENTER + 22222222 + ENTER + 33333333 + ENTER + 44444444 + ENTER + 55555555

Context: I use MightyText app which allows to send messages from computer for multiple recipients and also manage them on PC, but it allows only to put in phone numbers only manually one after another which doesn’t make sense.
It allows sending 25 at one but doesn’t allow pasting multiple numbers at once.

Please help me solve this! I appreciate you help!

Use the For Each action with the Substrings In collection. The example on the wiki page for the collection shows how to loop through each number in your text. Whether it is return or space separated wont matter.

The for each number, use the Insert Text by Pasting action to paste in the text, and the Type a Keystroke action to type the Enter key. I would suspect you probably want to add a Pause action to ensure you don’t enter the numbers too quickly, but it depends on the target application.

This macro should help get you started:
MACRO: Cycle Through Paragraphs @Example

One thing you will need to add is a action:Search and Replace Variable.

Here's an example Macro that puts each number string on a separate line:

##example Results

##Macro Library   @RegEx Separate Numbers by Lines

<a class="attachment" href="/uploads/default/original/2X/6/67ca5537c9d9960dbf9f5efb4fbd8db88dff32e0.kmmacros">@RegEx Separate Numbers by Lines.kmmacros</a> (2.6 KB)


<img src="/uploads/default/original/2X/4/489362552cc6ac16570deb24bbf1bcfe94332f3e.png" width="526" height="730">