How can I save a text in clipboard after a line?
For example, I have clipboard contents which looks like this:
Code: Select all
line 1 Text 1
line 2 Text 2
line 3 Text 3
line 4 Full Name+
line 5 Jon Snow
line 6 Text 6
line 7 Text 7
etc.
Thank you!
Code: Select all
line 1 Text 1
line 2 Text 2
line 3 Text 3
line 4 Full Name+
line 5 Jon Snow
line 6 Text 6
line 7 Text 7
etc.
Code: Select all
data=
(
line 1 Text 1
line 2 Text 2
line 3 Text 3
line 4 Full Name+
line 5 Jon Snow
line 6 Text 6
line 7 Text 7
etc.
)
clipboard:=data
;----------end creating clipboard demo-------------------
needle:="Name+"
status:=0
loop,parse,clipboard,`n,`r
{
if status
{
msgbox %A_LoopField%
break
}
else if instr(A_LoopField,needle)
status:=1
}
This works wonderfully! Thank you!noname wrote:Code: Select all
data= ( line 1 Text 1 line 2 Text 2 line 3 Text 3 line 4 Full Name+ line 5 Jon Snow line 6 Text 6 line 7 Text 7 etc. ) clipboard:=data ;----------end creating clipboard demo------------------- needle:="Name+" status:=0 loop,parse,clipboard,`n,`r { if status { msgbox %A_LoopField% break } else if instr(A_LoopField,needle) status:=1 }