Skip to content

Instantly share code, notes, and snippets.

@anonymous1184
anonymous1184 / Clip.ahk
Last active October 25, 2024 20:07
Clipboard Wrapper

; Version: 2022.06.30.1
; Usages and examples: https://redd.it/mpf896
/* Clipboard Wrapper
.Locked ; Clipboard status.
.Check() ; Automated check (throws Exception).
.Backup() ; Manual backup.
@anonymous1184
anonymous1184 / ClipHistory.ahk
Last active August 12, 2024 01:56
Clipboard History Manager

; Version: 2022.06.30.1
; Usages and examples: https://redd.it/mq9m58
ClipHistory(Ini, Monitoring := true)
{
static instance := false
if (!instance)
instance := new ClipHistory(Ini, Monitoring)
@anonymous1184
anonymous1184 / GetUrl.ahk
Last active April 8, 2025 18:30
GetUrl()
#Requires AutoHotkey v2.0
; Version: 2023.10.05.1
; https://gist.github.com/7cce378c9dfdaf733cb3ca6df345b140
GetUrl() { ; Active Window Only
static S_OK := 0, TreeScope_Descendants := 4, UIA_ControlTypePropertyId := 30003, UIA_DocumentControlTypeId := 50030, UIA_EditControlTypeId := 50004, UIA_ValueValuePropertyId := 30045
hWnd := WinGetID("A")
IUIAutomation := ComObject("{FF48DBA4-60EF-4201-AA87-54103EEF594E}", "{30CBE57D-D9D0-452A-AB13-7AC5AC4825EE}")
eRoot := ComValue(13, 0)
@anonymous1184
anonymous1184 / AppVolume.ahk
Last active August 12, 2024 01:56
GeekDude's AppVolume Library

; Original:
; https://gist.github.com/5b7ba418e685e52c3e6507e5c6972959#file-volume-ahk-L102
; This revision:
; https://gist.github.com/c06335f3aed215cdea414c33354a728b#file-appvolume-ahk
AppVolume(app:="", device:="")
{
return new AppVolume(app, device)
@anonymous1184
anonymous1184 / README.md
Last active August 12, 2024 01:56
G33kDude's Socket.ahk
@anonymous1184
anonymous1184 / ImgUr_Api.ahk
Last active December 24, 2023 17:05
ImgUr API

; Version: 2022.11.11.1
; About: https://redd.it/on9gab
#Include %A_LineFile%\..\Socket.ahk
#Include %A_LineFile%\..\WinHttpRequest.ahk
class ImgUr_Api {
__New(Ini, Section:="IMGUR") {
@anonymous1184
anonymous1184 / README.md
Last active November 11, 2022 13:26
Spotify API
@anonymous1184
anonymous1184 / README.md
Last active November 11, 2022 13:39
Spotify Keys (API)
@anonymous1184
anonymous1184 / README.md
Last active January 3, 2025 18:24
Spotify Keys (APP)
@anonymous1184
anonymous1184 / Brightness.ahk
Last active May 15, 2024 13:57
Brightness changer + OSD

; Version: 2022.11.17.1
; Usage and examples: https://redd.it/owgn3j
Brightness(Offset) {
static last := ""
wmi := ComObjGet("winmgmts:\\.\root\WMI")
if (last = "") {
last := wmi.ExecQuery("SELECT * FROM WmiMonitorBrightness")
.ItemIndex(0)