-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmarkdown-table.ahk
55 lines (53 loc) · 1.15 KB
/
markdown-table.ahk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
text1 := "|General | |`r"
text1 .= "| ----------------------------- | -------------------------- |`r"
aaa := clipboard
Loop, parse, aaa, `n
{
st := 1
aaa2 := A_LoopField
aaa1("File size")
aaa1("Duration")
aaa1("Overall bit rate")
aaa1("Format")
aaa1("Bit rate")
aaa1("Width")
aaa1("Height")
aaa1("Display aspect ratio")
aaa1("Frame rate mode")
aaa1("Frame rate ")
aaa1("Chroma subsampling ")
aaa1("Bit depth")
aaa1("Scan type")
aaa1("Codec configuration box")
aaa1("Sampling rate")
aaa1("Compression mode")
}
clipboard := text1
Return
aaa1(var1){
global text1
global aaa2
global st
if(st=0)
{
Return
}
IfInString, aaa2, %var1%
{
aaa2 := StrReplace(aaa2, " : ", " | ")
StringTrimRight, aaa2, aaa2, 1
text1 .= "|" aaa2 "|`r"
st := 0
asd := "Overall bit rate "
asd1 := "Codec configuration box"
IfInString, aaa2, %asd%
{
text1 .= "|**Video** | |`r"
}
else IfInString, aaa2, %asd1%
{
text1 .= "|**Audio** | |`r"
}
}
}
Return