AutoHotkeyU64_UIA.exe generates error

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
bobj
Posts: 4
Joined: 15 Jan 2022, 16:51

AutoHotkeyU64_UIA.exe generates error

Post by bobj » 15 Jan 2022, 17:29

Trying to diagnose a weird problem (not relevant here) I uninstalled and reinstalled AutoHotkey V. 1.1.33.10 on my Windows 11 Home computer. Now when I try to run AutoHotkeyU64_UIA.exe i get the error:

C:\Program Files\AutoHotkey\AutoHotkeyU64_UlA.exe
A referral was returned from the server.

How to get this program to work or any other way to use AHK in programs requiring administrator privileges?
Last edited by gregster on 15 Jan 2022, 17:33, edited 1 time in total.
Reason: Topic moved from "AHK v2 Help", since it is an AHK v1 question.

swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: AutoHotkeyU64_UIA.exe generates error

Post by swagfag » 15 Jan 2022, 18:39

has it ever worked on that win11 pc before?

bobj
Posts: 4
Joined: 15 Jan 2022, 16:51

Re: AutoHotkeyU64_UIA.exe generates error

Post by bobj » 15 Jan 2022, 19:36

Yes, it worked fine until today when I did the uninstall/reinstall. Note that the AutoHotkeyU64_UIA.exe file did not show up in the reinstall zip folder. I copied it into my AutoHotkey folder from a recent image I had saved . The version number 1.1.33.10 is identical to the AHK version I have just reinstalled.

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

Re: AutoHotkeyU64_UIA.exe generates error

Post by TAC109 » 15 Jan 2022, 22:36

You have to run the AutoHotkey Installer with the appropriate options to set this up properly.
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

bobj
Posts: 4
Joined: 15 Jan 2022, 16:51

Re: AutoHotkeyU64_UIA.exe generates error

Post by bobj » 16 Jan 2022, 10:55

Thank you. That would have been a lot easier than what I did. I solved it by manually setting AutoHotkeyU64.exe in the Compatibility tab to Run as Administrator and then used Task Scheduler to get it to run on Startup with having to confirm with the UAC screen. In any case, I got it working. Thanks again for the help.

bobj
Posts: 4
Joined: 15 Jan 2022, 16:51

Re: AutoHotkeyU64_UIA.exe generates error

Post by bobj » 16 Jan 2022, 19:37

I had to do a system Restore to address an unrelated problem which undid some of my previous fixes. So this time I ran the installer and it added the AutoHotkeyU64_UIA.exe file to deal with using AHK in applications requiring Administrator privileges. BUT because that file requires UAC confirmation to run, it wouldn't load at Startup (as it did previously). So I had to set up a script in Task Scheduler to get it to run on logon.

Post Reply

Return to “Ask for Help (v1)”