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
returnAny 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
returnCode: 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
returnCode: Select all
ClipBoard := RegExReplace(ClipBoard, "\R(?=\R{2,})")
; or
ClipBoard := RegExReplace(ClipBoard , "\R\R\K\R+")