本帖最后由 pcl_test 于 2015-5-22 08:09 编辑
回复 10# 1139054012 - #SingleInstance force
- ;按下Ctrl+C触发脚本开启自动保存,按 Win+Esc 退出脚本
- ~^c::
- loop{
- clipwait
-
- loop
- {
- StringReplace, clipboard, clipboard, `r`n`r`n, `r`n, UseErrorLevel
- if ErrorLevel = 0
- break
- }
-
- text := f(clipboard)
- f(a,d:="`r`n"){
- a:=strsplit(a,d)
- b:={}
- c:=""
- for _,v in a
- if b[v]
- continue
- else
- b[v]:=true
- ,c.=v d
- return c
- }
- text := trim(text," `t`r`n")
- FileAppend,%text%`r`n`r`n`r`n, 另存路径.txt, UTF-8
- clipBoard =
- }
- ~#ESC::ExitApp
复制代码
|