I want to get data from clipboard.
Code: Select all
The data is like:
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
line 8 Ticket ID+
line 9 01234567890
line 10 text 10
line 11 Summary
line 12 this is a sample summary
line 13 text 13
etc.
The line in which the variables that I want to get is random, so A_Index will not work in this case.
My code looks like this:
Code: Select all
!b::
Send, ^c
FN := "Full Name+"
TID := "Ticket ID+"
Sum := "Summary"
Status := 0
Loop, Parse, Clipboard, `n, `r
{
if Status
{
MsgBox %A_LoopField%
Break
}
else if InStr(A_LoopField, FN)
Status := 1
}
Thank you!