Skip to content

Instantly share code, notes, and snippets.

@sharkoz
Last active August 29, 2015 13:57
Show Gist options
  • Save sharkoz/9503249 to your computer and use it in GitHub Desktop.
Save sharkoz/9503249 to your computer and use it in GitHub Desktop.
Auto Hotkey AHK Edit file in notepad++ when Left+Right clicking a file. #AHK
~LButton & RButton::
Send {LButton Up}
FilePath:=""
FilePath:=GetFile()
IfExist, %FilePath%
Run "C:\...\Notepad++ 6.2\notepad++.exe" %FilePath%
return
GetFile() {
ClipSave:=ClipboardAll
Clipboard:=""
Send ^c
ClipWait, .2
Path=%clipboard%
Clipboard:=ClipSave
Return Path
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment