Ahk2Exe works only if it is run as an administrator

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
neosix
Posts: 5
Joined: 11 May 2018, 11:32

Ahk2Exe works only if it is run as an administrator

26 Nov 2018, 06:32

Hello guys. I've been using Ahk for a decade and never had problem like this.

If I try to compile Ahk script in Scite I see message: Successfully compiled: , but there's no exe file. I tried compiling the script directly via Ahk2Exe gui, and from cmd and the same thing.

The only way is to run Ahk2Exe as administrator.

I'm on Windows 10 LTCS x64, and I installed the latest Ahk.
UAC is disabled completely, Defender is disabled and I have no Antivirus.
User avatar
Scr1pter
Posts: 1272
Joined: 06 Aug 2017, 08:21
Location: Germany

Re: Ahk2Exe works only if it is run as an administrator

26 Nov 2018, 06:55

Check if you have write access in the output folder.
You can also change the output folder (e.g to Desktop)

Did it work before?
(I mean with the latest AHK version)

Regards
Please use [code][/code] when posting code!
Keyboard: Logitech G PRO - Mouse: Logitech G502 LS - OS: Windows 10 Pro 64 Bit - AHK version: 1.1.33.09
neosix
Posts: 5
Joined: 11 May 2018, 11:32

Re: Ahk2Exe works only if it is run as an administrator

26 Nov 2018, 08:13

I checked permissions, no issue. I tried to downgrade Ahk, but still the same problem.
User avatar
Scr1pter
Posts: 1272
Joined: 06 Aug 2017, 08:21
Location: Germany

Re: Ahk2Exe works only if it is run as an administrator

26 Nov 2018, 08:45

So we both are speaking about this?
Image
How are your settings?

If you let your output folder opened (while clicking on convert), does anything get changed (at least for some milliseconds)?

Regards
Please use [code][/code] when posting code!
Keyboard: Logitech G PRO - Mouse: Logitech G502 LS - OS: Windows 10 Pro 64 Bit - AHK version: 1.1.33.09
neosix
Posts: 5
Joined: 11 May 2018, 11:32

Re: Ahk2Exe works only if it is run as an administrator

26 Nov 2018, 10:40

Nope, nothing happens, I've just tried. It says Conversion complete, but no exe file. The same thing if I use Ahk2Exe from cmd.

Really strange.
User avatar
gwarble
Posts: 524
Joined: 30 Sep 2013, 15:01

Re: Ahk2Exe works only if it is run as an administrator

26 Nov 2018, 18:59

try turning uac to the second-from-highest
EitherMouse - Multiple mice, individual settings . . . . www.EitherMouse.com . . . . forum . . . .
User avatar
gwarble
Posts: 524
Joined: 30 Sep 2013, 15:01

Re: Ahk2Exe works only if it is run as an administrator

27 Nov 2018, 19:53

hmm, how about run (don't compile) a simple script like:

Code: Select all

SetWorkingDir %A_ScriptDir%
FileAppend, text, fakeexe.exe
ExitApp
EitherMouse - Multiple mice, individual settings . . . . www.EitherMouse.com . . . . forum . . . .
neosix
Posts: 5
Joined: 11 May 2018, 11:32

Re: Ahk2Exe works only if it is run as an administrator

02 Dec 2018, 06:26

Sorry for the late reply. This works fine, fakeexe.exe is created. I think the problem is Windows, I will reinstall it when I have time
User avatar
Maestr0
Posts: 136
Joined: 05 Dec 2013, 17:43

Re: Ahk2Exe works only if it is run as an administrator

02 Dec 2018, 08:49

neosix wrote:
02 Dec 2018, 06:26
Sorry for the late reply. This works fine, fakeexe.exe is created. I think the problem is Windows, I will reinstall it when I have time
in the exact same folder?

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 332 guests