As regular readers know well, I’m a huge fan of using AutoHotkey to automate my entire computing experience… but in Windows 7 and Vista there’s a serious limitation since you can’t run a script as Administrator by default. This means that your hotkeys can’t interact with windows running in Admin mode… so how do we get around this?
There are three solutions to this problem:
- Completely Disable UAC – Not the best solution for security purposes, but it works.
- Compile your script to an executable.
- Hack the registry and add “Run as Administrator” to the context menu.
Compile Script as Executable
All you have to do is right-click on the script, choose “Compile Script”…
And now you can run the executable version as administrator:
This isn’t the perfect solution, however. I edit my script all the time, so having to recompile each time I make an edit… would get annoying.
Manual 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” %*
The default key should already be there, just need to set the value.
Now when you right-click on an AutoHotkey script, you’ll see the option to Run as Administrator:
Download Registry Hack
Download, extract, and double-click on the AdminAutoHotkey.reg to enter the information into the registry. There’s also a removal script included.
Note that this registry hack will only work if you installed AutoHotkey into the default location, otherwise you’ll have to modify the paths.
Download AdminAutoHotkey Registry Hack
If you have an issue with your system clock losing time, you’ve probably had to go and re-sync your clock with the internet time servers. The problem is that there are just way too many clicks required to get to the right screen, so the command line is much simpler.
When it comes to Internet Freedom I believe the candidate with the best position is Ron Paul. You can check it out in his own words.
If you are a fan of the Greasemonkey extension for Firefox you might wonder how to change the script editor/viewer as there is no option for this in the UI. It’s even worse when you download scripts from some website and the line endings don’t work in the inferior default editor.
For anyone even semi-familiar with the Internet I am sure you are aware of the Ron Paul Revolution. His name currently is the #1 googled subject right now. The Ron Paul presidential campaign has basically taken over YouTube and his support has gained reputable positions on popular social
As a programmer and a fairly terrible web designer, I often need to select a color from an image somewhere on the screen, and it gets really tiring to take a screenshot, paste into Photoshop and use the eyedropper there.
Have you ever noticed that sometimes Firefox isn’t very responsive while loading a page? As a frequent StumbleUpon user, this behavior grates on my nerves so I went looking for a solution.
If there’s one thing that annoys me in Internet Explorer more than anything else, it’s that there is no way to re-open a tab once you’ve closed it. It’s especially annoying when you’ve done a lot of browsing so you have to sift through your history to find the link for the page you closed.
If you’ve switched from Yahoo! over to Gmail because you prefer to read your email in a desktop client such as Thunderbird, you probably are wondering how you can do the same thing with Yahoo! for free.
If you are the type of person that restarts your computer all the time, you are probably really worried about speeding up your bootup time. Unless you get paid to watch the Windows boot screen. I wonder how well that would pay…
Let’s face it, not everybody is an ubergeek, so there are many times that you’ll need to ask somebody for help. They always seem to ask you to type things into the command prompt and then tell them the results… but how do you copy that text to the clipboard so you can email it to them?