Fix for AutoHotkey Not Working in Windows 10

Get help with using AutoHotkey and its commands and hotkeys
User avatar
chazcon
Posts: 17
Joined: 03 Aug 2015, 23:12

Fix for AutoHotkey Not Working in Windows 10

09 Oct 2015, 01:24

UAC rules have changed with Windows 10.

AutoHotkey scripts that worked fine in Windows 7 no longer work in Windows 10.

1) Find your AutoHotkey executable, typically here: C:\Program Files\AutoHotkey\AutoHotkey.exe

2) Right-click on AutoHotkey.exe

3) Select the Compatibility tab

4) Enable Run this program as Administrator

5) Click OK

Note you have to do this even though you are running as an Administrator.

This caused me to go back to Windows 7 until I could figure it out. Gamer, I need my scripts! Very frustrating. Hope this helps others.
FOR THE VITAE!
lexikos
Posts: 6129
Joined: 30 Sep 2013, 04:07
GitHub: Lexikos

Re: Fix for AutoHotkey Not Working in Windows 10

09 Oct 2015, 02:40

No, the UAC rules changed with Windows 8. In Windows 8.1 and 10 the rules remain the same as in Windows 8.

If UAC is enabled in any version of Windows, most programs do not run as administrator by default, even if you are an administrator. That is basically the purpose of UAC. Your instructions would apply to any system with UAC enabled. The difference between Vista/7 and 8/8.1/10 is that in the latter, the "Never notify me" setting in Control Panel doesn't actually disable UAC, just the Yes/No prompts.

I would generally not recommend running every script (or program) as administrator. Any programs that the script launches will also run as administrator. If you just need to automate windows of programs running as admin, you can use EnableUIAccess instead.
User avatar
chazcon
Posts: 17
Joined: 03 Aug 2015, 23:12

Re: Fix for AutoHotkey Not Working in Windows 10

09 Oct 2015, 09:47

This is incorrect. Even with UAC off you need to run AutoHotkey as an administrator.

If there's another method, let's hear it.
FOR THE VITAE!
lexikos
Posts: 6129
Joined: 30 Sep 2013, 04:07
GitHub: Lexikos

Re: Fix for AutoHotkey Not Working in Windows 10

09 Oct 2015, 17:47

Right back at you. You are incorrect. If you have any facts to back up your claims, let's hear them. :roll:

  1. AutoHotkey does not need to be run as administrator. I frequently run it as a limited user. By default it can only automate windows which are not running as administrator (due to security restrictions), but if you use EnableUIAccess as I said, it can automate any window even while running as a limited user. Specific scripts might still need to be run as administrator, such as if they write to the Program Files directory; but the majority of scripts do not.

  2. If UAC is disabled and the current user is an administrator, every program run by that user gets administrative privileges.

    On Windows Vista at least, you can't even turn on the option if UAC is disabled. If you temporarily disable UAC, turn on the option and re-enable UAC, there will be a tick in the box but the box itself will be disabled and the setting will have no effect. Even "Run as administrator" from the context menu just runs the script normally - without admin if the user isn't an admin.

    If you are using Windows 8 or later, it is very unlikely that you have UAC disabled. On Windows 8 and later, UAC can only be disabled by modifying the registry, and doing so breaks apps. As I said, "turning off" UAC in Control Panel on Windows 8 and later just suppresses the Yes/No prompts; programs are still run with limited privileges by default.

    Supposedly turning off "admin approval mode" has a similar effect to disabling UAC, but I haven't tried it and wouldn't recommend it either.

Return to “Ask For Help”

Who is online

Users browsing this forum: No registered users and 78 guests