Code: Select all
[code=autohotkey file=Untitled.ahk]^!Space::
clipboard =
Send, ^a
Send, ^c
ClipWait
clipboard := RegExReplace(clipboard, "^[\r\n]{2,}","\n")
sleep 100
Send, ^v
return
Any idea what could be wrong?
Code: Select all
[code=autohotkey file=Untitled.ahk]^!Space::
clipboard =
Send, ^a
Send, ^c
ClipWait
clipboard := RegExReplace(clipboard, "^[\r\n]{2,}","\n")
sleep 100
Send, ^v
return
Code: Select all
^!Space::
clipboard =
Send, ^a
Send, ^c
ClipWait
clipboard := RegExReplace(clipboard,"\v\v+","`n`n") ; v find vertical tab char
sleep 100
Send, ^v
return
Code: Select all
ClipBoard := RegExReplace(ClipBoard, "\R(?=\R{2,})")
; or
ClipBoard := RegExReplace(ClipBoard , "\R\R\K\R+")
Users browsing this forum: arrondark, mikeyww, RussF, science2002 and 86 guests