Wallpaper change AutoHotkey

exeahk source
Press win + n to switch to the next desktop background for versions of windows with desktop slideshow before Windows 8. Tested on Windows 7, other versions need testing.
This was inspired by a search for a hotkey that just works–like it does in 8, but before 8 was a thing. I found a couple pages like this one on super user which were close, but not perfect. My improvements don't flash the desktop or anything, and it works if you hold down win and keep hitting n (until some hotkey timeout expires on the windows key). It operates on a similar mechanic but uses controls rather than clicking on raw coordinates, so it'll work no matter what is on top. I just stick the exe in my startup folder.

Brightness Setter

exeahk source
This binds ctrl + shift + F8 and ctrl + shift + F9 to minimum and maximum brightness, respectively.
I find myself setting the brightness on my laptop to minimum or maximum depending on the time of day or what I'm doing, but there is no good shortcut to do this, other than pressing fn + F8 or fn + F9 15 times. That can get a little repetitive. This has a bit of a delay before the hotkey is recognized, and it would be nice if it used the fn key not the ctrl key, but that's not possible due to the way the function keys are bound in BIOS.

Toggle Lid Sleep

batch
Run this script to toggle what closing the lid on your laptop does. It switches between sleep and nothing, but can be adjusted for other settings. This is a great little script for making your laptop into a temporary iPod. Just put it in your start menu or link to it from there and a quick win → togg → enter can call it. I run this on the bus to save power (most of which is used by the LCD) or when listening to podcasts at night to avoid the bright light.

Desktop Background Path

batch
This script will print the file path to the current desktop background image.
There's no real other way to determine the image path if you have a random slideshow for your background. If you want to know the image that's currently showing, just run this script. I leave it on the desktop for easy access.

Restart Aero

batch
This script is a quick way to restart aero if windows stops the service due to system slowdown. It can be difficult to get windows to stop terminating the service (you can only tell it not to do it as much, but it still will under certain conditions). If you're doing system intensive work or gaming, sometimes windows will detect the system slowdown and try stopping aero to speed things up. If, like me, you like being able to see through the start menu and all the other UI niceities that aero offers, this can get annoying. Put this or a link to it in your start menu, and a quick win + rest + enter can bring back all those UI goodies.

Batch as Admin

batch
This can be put at the top of any batch script to automatically request elevation. Credit goes to https://sites.google.com/site/eneerge/home/BatchGotAdmin for this script. I'm just putting it here to make it easier for me to find in the future, really.

Switch Internet Connection DNS Between Automatic (DHCP) and 127.0.0.1

batch
This is specifically made to work with Acrylic DNS Proxy. The script takes any currently connected internet connections that aren't VirtualBox related and changes their DNS settings. The idea is that Acrylic is running on 127.0.0.1, and this switches between automatic DNS and Acrylic. (eg. for when you use Acrylic for ad blocking and it's blocking something it shouldn't).

Chrome Close Protect

exeahk source
This disables the ctrl + shift + q and ctrl + shift + w shortcuts in Google Chrome, when the window is active. It's useful so you don't accidentally close all your tabs or windows when trying to hit other shortcuts, like ctrl + shift + tab.