I compile scripts so often for testing both x86 and x64 and have troubles compiling for the other build. Currently it only supports for the installed build. It would be convenient to have a context menu items (when selecting a .ahk file) that are "Compile Script (x86)" and "Compile Script (x64)"
Thanks for listening.
Context Menu, Compile for x86 and x64
Started by
Guest
, Aug 12 2011 07:40 PM
5 replies to this topic
#1
Guests
Posted 12 August 2011 - 07:40 PM
#2
Posted 13 August 2011 - 12:56 AM
Save the following as a .reg file, correct the paths, then run it. It will give you two context menu items as requested.
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\AutoHotkeyScript\Shell\Compile32] @="Compile Script (x86)" [HKEY_CLASSES_ROOT\AutoHotkeyScript\Shell\Compile32\Command] @="\"C:\\Program Files\\AutoHotkey\\Compiler\\Ahk2Exe.exe\" /in \"%l\" /bin \"C:\\Program Files\\AutoHotkey\\Compiler\\Unicode 32-bit.bin\"" [HKEY_CLASSES_ROOT\AutoHotkeyScript\Shell\Compile64] @="Compile Script (x64)" [HKEY_CLASSES_ROOT\AutoHotkeyScript\Shell\Compile64\Command] @="\"C:\\Program Files\\AutoHotkey\\Compiler\\Ahk2Exe.exe\" /in \"%l\" /bin \"C:\\Program Files\\AutoHotkey\\Compiler\\Unicode 64-bit.bin\""
#3
Guests
Posted 13 August 2011 - 08:27 AM
Very nice, thanks. I'm asking this not only for myself but also for other AHK users. This should be an option to add when installing the program. Thanks for your consideration.
#4
Guests
Posted 09 August 2012 - 11:51 AM
Thanks for the tip. Just one small thing. The .reg file must be saved as ANSI.
By the way, can this be included in the installer as an option for custom installation?
By the way, can this be included in the installer as an option for custom installation?
#5
Posted 31 October 2012 - 08:02 PM
hello, sorry for the question but I am new to AutoHotkey_L, but a long-time user of AutoHotkey. Have to say that 'L' seems great so far. I wonder if you could please help me understand the difference between: SutoHotkeySC.bin, Unicode 32-bit.bin, and Unicode 64-bit.bin. I can see how these are specified as arguments in AHK2Exe.exe, but I don't understand the differences between them. I know what Unicode is, and I know what 32-bit and 64-bit mean. but my question is, what do you get if you use the AutoHotkeySC.bin file? And if my code works well on a 64-bit machine using the AutoHotKeySC.bin file, do I want to change to the 32-bit or 64-bit Unicode files? I will need to compile my application for 32-bit as well. So any help would be appreciated. Thank you! -don
#6
Posted 31 October 2012 - 10:01 PM
If you use
Unicode 64-bit.bin, your code will work only on 64bit - Windows. If you use Unicode 32-bit.bin, it will work both on 64bit and 32bit Windows.




