Last active
August 29, 2015 13:57
-
-
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
This file contains hidden or 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
~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