AutoHotkey Community

It is currently May 26th, 2012, 10:51 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: October 29th, 2009, 4:25 pm 
Offline

Joined: September 15th, 2006, 10:25 am
Posts: 567
..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..


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 30th, 2009, 2:48 pm 
Offline

Joined: October 4th, 2006, 2:15 am
Posts: 250
Location: Louisville, KY
Good tip... thanks for posting it. I was just wondering how to do this myself a couple of days ago.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Yahoo [Bot] and 16 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group