Skip to content

Instantly share code, notes, and snippets.

@0x4a
Created January 16, 2014 03:13
Show Gist options
  • Save 0x4a/8449233 to your computer and use it in GitHub Desktop.
Save 0x4a/8449233 to your computer and use it in GitHub Desktop.
remove newline character from #clipboard #work #string #ahk
; remove newline characters
; Win + X
#x::
Send ^x
StringReplace, clipboard, clipboard,`r`n,, All
Send ^v
return
@xmaxrayx
Copy link

xmaxrayx commented Feb 26, 2024

@MangerzArt you dont need to use return on final line

~^c::
{
clipboard := StrReplace(Clipboard, "`r`n", "")
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment