Skip to content

Commit

Permalink
Add compatibility check to compile_chm.ahk
Browse files Browse the repository at this point in the history
  • Loading branch information
Lexikos committed Sep 10, 2015
1 parent 69139ff commit d554975
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions compile_chm.ahk
@@ -1,3 +1,11 @@
if (A_PtrSize = 8) {
try
RunWait "%A_AhkPath%\..\AutoHotkeyU32.exe" "%A_ScriptFullPath%"
catch
MsgBox 16,, This script must be run with AutoHotkey 32-bit, due to use of the ScriptControl COM component.
ExitApp
}

; Change this path if the loop below doesn't find your hhc.exe,
; or leave it as-is if hhc.exe is somewhere in %PATH%.
hhc := "hhc.exe"
Expand Down

0 comments on commit d554975

Please sign in to comment.