Last active
June 8, 2023 23:48
-
-
Save aviaryan/5418603 to your computer and use it in GitHub Desktop.
Everything Integration with AutoHotkey - Faster Search in Windows
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
EverythingPath = ;specify the path here | |
#IfWinActive ahk_class CabinetWClass | |
{ | |
F6:: | |
folder := GetFolder() | |
run, %EverythingPath% -path "%folder%" | |
return | |
} | |
GetFolder() | |
{ | |
WinGetClass,var,A | |
If var in CabinetWClass,ExplorerWClass,Progman | |
{ | |
IfEqual,var,Progman | |
v := A_Desktop | |
else | |
{ | |
winGetText,Fullpath,A | |
loop,parse,Fullpath,`r`n | |
{ | |
IfInString,A_LoopField,:\ | |
{ | |
StringGetPos,pos,A_Loopfield,:\,L | |
Stringtrimleft,v,A_loopfield,(pos - 1) | |
break | |
} | |
} | |
} | |
return, v | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment