shajul
Joined: 15 Sep 2006 Posts: 564
|
Posted: Thu Oct 29, 2009 3:25 pm Post subject: Add "Run as Administrator" for AutoHotkey Scripts |
|
|
..on Vista or Windows 7
I searched the forum for this, but could not find it.. so posting this solution here..
This is not my original solution, but i found it on Howtogeek.com
This is better than compiling every script as an executable..
Registry Hack for AutoHotkey “Run as Administrator”
Open up regedit through the start menu search or run box, and then browse down to the following key:
HKEY_CLASSES_ROOT\AutoHotkeyScript\Shell
Right-click on “Shell” on the left-hand side and create a new key called “runas”, then create a key called “Command” below it. Then create or set the following two values on the right-hand side, adjusting the path if necessary.
Name Value
(Default) “C:\Program Files\AutoHotkey\AutoHotkey.exe” “%1″ %*
IsolatedCommand “C:\Program Files\AutoHotkey\AutoHotkey.exe” “%1″ %*
Now when you right-click on an AutoHotkey script, you’ll see the option to Run as Administrator:
The reg file is available on the original site.. |
|