| 4456 | } |
| 4457 | |
| 4458 | bool 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 | |
| 4473 | void LaunchAutoHotkeyUtil(LPTSTR aFile, bool aIsScript) |
| 4474 | { |
no test coverage detected