Last active
April 26, 2021 15:52
-
-
Save JoeGlines/b759cd487d2aa552e8ad8dd17a669ed4 to your computer and use it in GitHub Desktop.
get path to selected file
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
;******************************************************* | |
; Want a clear path for learning AutoHotkey; Take a look at our AutoHotkey Udemy courses. They're structured in a way to make learning AHK EASY | |
; Right now you can get a coupon code here: https://the-Automator.com/Learn | |
;******************************************************* | |
#SingleInstance, force ;AutoHotkey Webinar | |
#IfWinActive ahk_class CabinetWClass ;Explorer window | |
^+c:: ;Copy explorer path to clipboard | |
clipboard = ; Empty the clipboard | |
SendInput, ^c ;changd from Send 11/23 | |
ClipWait, 1 | |
If ErrorLevel ;Added errorLevel checking | |
MsgBox, No text was sent to clipboard Return | |
clipboard="%clipboard%" | |
;***********for UNC &DropBox******************* | |
IfEqual, A_UserName,joe,StringReplace,Clipboard,Clipboard,B:,C:\DropBox ;Joe | |
IfEqual, A_UserName,a0225522,StringReplace,Clipboard,Clipboard,E:,\\DFLFS04\email ;Joe Return | |
#IfWinActive |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment