Here's a program I made that dims the screen.
#SingleInstance,Ignore runspeed=0 editspeed=0 Beg: Hotkey,^Escape,end,Off Gui, Add, Slider,x10 y70 w400 vrunspeed Range1-100 gchangespeed AltSubmit,%editspeed% Gui, Add, Edit, x10 y110 w40 Number veditspeed geditchange,%editspeed% Gui,add,text, x10 y10 +wrap,Select an amount of screen brightness. Push ALT+z to turn off the dim and click or push CTRL+Escape while the screen is dimmed to exit the program. Gui,add,button, x150 y100 gdim,Dim the screen. Gui,Show,Center return Guiclose: ExitApp changespeed: Gui, Submit, NoHide GuiControl,, editspeed, %runspeed% Return editchange: Gui,Submit, NoHide GuiControl,, runspeed, %editspeed% Return dim: if editspeed > 100 editspeed = 100 Gui,Destroy Gui,color,000000 Gui, -Caption +AlwaysOnTop +E0x20 +owner Gui,show, x0 y0 w%A_ScreenWidth% h%A_ScreenHeight%,Light Blocking GUI WinSet, Transparent, %editspeed%, Light Blocking GUI Hotkey,^Escape,end,On return !z:: Gui,Destroy Gosub,beg return end: Gui,Destroy ExitApp return
I added +owner in the options for the dimming gui.
Its short, but sweet.
Suggestions, comments?