Skip to content

Instantly share code, notes, and snippets.

@aviaryan
Last active June 8, 2023 23:48
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aviaryan/5418603 to your computer and use it in GitHub Desktop.
Save aviaryan/5418603 to your computer and use it in GitHub Desktop.
Everything Integration with AutoHotkey - Faster Search in Windows
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