MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / FindAutoHotkeyUtil

Function FindAutoHotkeyUtil

source/script2.cpp:4458–4471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4456}
4457
4458bool FindAutoHotkeyUtil(LPTSTR aFile, bool &aFoundOurs)
4459{
4460 // Always try our directory first, in case it has different utils to the installed version.
4461 if ( !(aFoundOurs = FindAutoHotkeyUtilSub(aFile, g_script.mOurEXEDir)) )
4462 {
4463 // Try GetAHKInstallDir() so that compiled scripts running on machines that happen
4464 // to have AHK installed will still be able to fetch the help file and Window Spy:
4465 TCHAR installdir[MAX_PATH];
4466 if ( !GetAHKInstallDir(installdir)
4467 || !FindAutoHotkeyUtilSub(aFile, installdir) )
4468 return false;
4469 }
4470 return true;
4471}
4472
4473void LaunchAutoHotkeyUtil(LPTSTR aFile, bool aIsScript)
4474{

Callers 1

LaunchAutoHotkeyUtilFunction · 0.85

Calls 2

FindAutoHotkeyUtilSubFunction · 0.85
GetAHKInstallDirFunction · 0.85

Tested by

no test coverage detected