Skip to content

Instantly share code, notes, and snippets.

@2ajoyce
Last active October 5, 2022 09:43
Show Gist options
  • Save 2ajoyce/7b19b60b93176ccbb790117020d1e3f3 to your computer and use it in GitHub Desktop.
Save 2ajoyce/7b19b60b93176ccbb790117020d1e3f3 to your computer and use it in GitHub Desktop.
Autohotkey Paste In Git Bash
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
SetTitleMatchMode, 1
I_Icon = C:\Program Files\AutoHotkey\Letter Icons\paste.ico
ICON [I_Icon] ;Changes a compiled script's icon (.exe)
if I_Icon <>
IfExist, %I_Icon%
Menu, Tray, Icon, %I_Icon% ;Changes menu tray icon
#IfWinActive MINGW64
{
^v::
SendInput +{Insert}
Return
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment