Permalink
Browse files

Add compatibility check to compile_chm.ahk

  • Loading branch information...
1 parent 69139ff commit d5549754d97adec91a3b0c380170c43e56ad0376 @Lexikos committed Sep 10, 2015
Showing with 8 additions and 0 deletions.
  1. +8 −0 compile_chm.ahk
View
@@ -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"

0 comments on commit d554975

Please sign in to comment.