Scite won't compile script

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
rfxcasey
Posts: 8
Joined: 17 Jul 2020, 11:38

Scite won't compile script

Post by rfxcasey » 26 Jan 2022, 11:05

I'm trying to compile my script to .exe but when I press 'compile' in scite I get an error:
>"C:\Program Files (x86)\AutoHotkey\Compiler\Ahk2Exe.exe" /in "C:\Program Files (x86)\AutoHotkey\DCS Weapon Setup Bak.ahk" /bin "C:\Program Files (x86)\AutoHotkey\Compiler\Unicode 64-bit.bin"
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
>Exit code: 1 Time: 0.1388

Examining farther Ahk2exe.exe doesn't even exist in "C:\Program Files (x86)\AutoHotkey\Compiler\. I did a clean install and everything went fine so why is this missing?

User avatar
mikeyww
Posts: 26848
Joined: 09 Sep 2014, 18:38

Re: Scite won't compile script

Post by mikeyww » 26 Jan 2022, 18:04

Is it possible that your antivirus quarantined the program?

TAC109
Posts: 1111
Joined: 02 Oct 2013, 19:41
Location: New Zealand

Re: Scite won't compile script

Post by TAC109 » 26 Jan 2022, 18:24

The default location for AutoHotkey and scite is "C:\Program Files\AutoHotkey\, not "C:\Program Files (x86)\AutoHotkey\. Perhaps this has a bearing on your problem.

Cheers
My scripts:-
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe

rfxcasey
Posts: 8
Joined: 17 Jul 2020, 11:38

Re: Scite won't compile script

Post by rfxcasey » 27 Jan 2022, 01:45

TAC109 wrote:
26 Jan 2022, 18:24
The default location for AutoHotkey and scite is "C:\Program Files\AutoHotkey\, not "C:\Program Files (x86)\AutoHotkey\. Perhaps this has a bearing on your problem.

Cheers

Perhaps but that is where it is actually installed, where the original install was before it got updated I believe. I just uninstalled it completely, reinstalled it and just used the AHK2EXE in the complier folder and that compiled it fine.

Post Reply

Return to “Ask for Help (v1)”