

Now here is the important part: To have your script “Run as admin”, on the General tab check off “Run with highest privileges”. When that Properties dialog opens up, go to the Conditions tab and make sure none of the checkboxes under the Power category are checked off this will ensure the script still launches if you are on a laptop and not plugged into AC power.Before you finish the wizard, check off “Open the Properties dialog for this task when I click Finish”. Then specify that you want it to “Start a program”, and then point it towards your AutoHotkey script. Give it a name and description (something like “launch AutoHotkey script at login”), and then specify to have it run “When I log on”.Open the Task Scheduler (also known as “Schedule tasks” in Windows 8 Settings).So here is a Windows 8, UAC-friendly method to automatically launch your AHK scripts as admin at startup (also works in previous versions of Windows). What I didn’t realize at the time though was that the method only worked for launching my AHK script as an admin because I had disabled UAC in the registry (which prevents most Metro apps from working in Windows 8, and likely isn’t acceptable for most people). I also showed how to have the script start automatically when you logged into Windows. Update: Before you go running your script as an admin, see if this less obtrusive fix will solve your problems.Ī few weeks back I posted some problems with running AutoHotkey (AHK) in Windows 8, and that the solution was to run your AHK script as admin. Get AutoHotkey Script To Run As Admin At Startup
