Skip to content

Instantly share code, notes, and snippets.

@neverendingqs
Created March 8, 2016 00:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neverendingqs/4f1999ac11e70d701200 to your computer and use it in GitHub Desktop.
Save neverendingqs/4f1999ac11e70d701200 to your computer and use it in GitHub Desktop.
autohotkey
#n::Run "C:\Program Files (x86)\Notepad++\notepad++.exe"
#c::Run "C:\Program Files\ConEmu\ConEmu64.exe"
#v:: ; Text–only paste from ClipBoard
Clip0 = %ClipBoardAll%
ClipBoard = %ClipBoard% ; Convert to text
Send ^v ; For best compatibility: SendPlay
Sleep 50 ; Don't change clipboard while it is pasted! (Sleep > 0)
ClipBoard = %Clip0% ; Restore original ClipBoard
VarSetCapacity(Clip0, 0) ; Free memory
Return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment