Created
March 18, 2020 23:10
-
-
Save myerspliers/89bc7f9257b659ac239e2911ebad5e9e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Make Shift+Insert always paste the clipboard for WSL ubuntu.exe | |
; Keep regular shift insert as normal as possible, because | |
; this inserts kind of slow. It's not as slow as SendRaw, but slower | |
; than a real Shift+Insert. | |
+Ins:: | |
WinGet, aProcess, ProcessName, A | |
if (aProcess == "ubuntu.exe") { | |
SendInput %clipboard% | |
} | |
else { | |
SendInput {shift down}{insert}{shift up} | |
} | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment