Code: Select all
0:00 Intro
1:40 Exterior
2:40 Entry
3:15 Office
4:50 Powder Room
1:25:10 Living Room
I am trying to automatically turn into this:
Code: Select all
[[0:00]] Intro
[[1:40]] Exterior
[[2:40]] Entry
[[3:15]] Office
[[4:50]] Powder Room
[[1:25:10]] Living Room
So far I only found some codes to wrap the whole line by line, not to just wrap the needed part
Code: Select all
InputBox, VarThemDauCuoiCaigi, Them Dau Cuoi cai gi
VarThemDauThemDuoi=
Loop, parse, clipboard, `n, `r
{
If (!VarThemDauThemDuoi) ; If nothing is in x
VarThemDauThemDuoi := VarThemDauCuoiCaigi A_LoopField VarThemDauCuoiCaigi
else ; If there is something in x, add to it
VarThemDauThemDuoi .= "`r`n" VarThemDauCuoiCaigi A_LoopField VarThemDauCuoiCaigi
}
clipboard:=VarThemDauThemDuoi
sleep 100
TrayTip, Output here, %clipboard%, 3, 1
return
Code: Select all
Variable = 20:00 Intro dsf 2221:40 Exterior 222
RegExMatch(variable, "\d+`:\d+", var)
RegExReplace(var,"\d+%var%\d+", , )
MsgBox % var
return
And even more advanced, how do I do it with longer times where it runs into hh:mm:ss (3 sets of numbers like the last line "[[1:25:10]] Living Room", instead of mm:ss)
Really appreciate your help!