Skip to content

Instantly share code, notes, and snippets.

View indigofairyx's full-sized avatar

Xavier indigofairyx

  • west, usa
  • 00:29 (UTC -07:00)
View GitHub Profile
@charlie89
charlie89 / ahk_darkmode.ahk
Last active April 28, 2026 21:43
AutoHotkey v2 Dark Mode
#Requires AutoHotkey v2.0
; This script creates a dark mode for specific windows by inverting their colors.
; It uses the Windows Magnifier in the background for the color inverting, but it only inverts just the rectangle in place
; of the specific windows, NOT the whole screen like the Magnifier applicaion does. This is possible through DLL calls.
; Big thanks to the original source at https://www.autohotkey.com/boards/viewtopic.php?p=563023#p563023.
; Requirements:
; - AutoHotkey needs to be installed in C:\Program Files (or use the workaround from https://www.reddit.com/r/AutoHotkey/comments/16ux144/ui_access_without_reinstalling_in_program_files_v2/).
; - In the 'Launch Settings' of 'AutoHotkey Dash' you need to enable 'UI Access'.
@Lexikos
Lexikos / menu-search.ahk
Created March 7, 2013 11:58
Window Menu Search - tap the Alt key to search the active window's menus. http://www.autohotkey.com/board/topic/91067-/
SetBatchLines -1
OnMessage(0x100, "GuiKeyDown")
OnMessage(0x6, "GuiActivate")
return
Alt::
Gui +LastFoundExist
if WinActive()
goto GuiEscape
Gui Destroy