K
K
Kropovniczky2021-10-09 15:37:24
Text Processing Automation
Kropovniczky, 2021-10-09 15:37:24

How do I insert something else between each line in the ahk file?

I have a file with 10k lines. It is difficult to explain, it should look like this (code on AutoHotkey):

NumPad1::
SendMessage, 0x50,, 0x4190419,, A
SendInput,  123 {Enter}
Sleep 1100
SendInput, 1234{Enter}
Sleep 1100
SendInput, 12345{Enter}
Sleep 1100
SendInput, 123456 {Enter}
Sleep 1100
SendInput, 1234567 {Enter}
Sleep 1100
SendInput, 12345678{Enter}
Return


now I have a file where just
123
1234
12345
123456
1234567
12345678

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2021-10-09
@ForestAndGarden

Hello. It's hard to explain. Regexp or Excel.

D
dollar, 2021-10-09
@dollar

You can replace everything in a regular text editor like Notepad++ with
\n
:

{Enter}\n
Sleep 100\n
SendInput,

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question