GetChooseFile(ParseLink:=1){ ;可选参数 1解析lnk 其他不解析 默认解析 ClipSave := ClipboardAll ;转存当前剪切板 Send, ^c Sleep, 100 Paths := Clipboard Clipboard := ClipSave Paths2 = Loop, Parse, Paths, `n, `r ;解析获取的字符串 { if (ParseLink=1 && RegExMatch(A_LoopField,"\.lnk$")) { FileGetShortcut, % A_LoopField, t Paths2 .= t "`n" } else Paths2 .= A_LoopField "`n" } return Paths2 }
60 queries in 1.715 seconds |