Original: https://github.com/G33kDude/Socket.ahk
Changes:
#Warn
compatible (see Socket.patch).
| |
; 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. |
| |
; 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) |
#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) |
| |
; 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) |
Original: https://github.com/G33kDude/Socket.ahk
Changes:
#Warn
compatible (see Socket.patch). | |
; 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") { |
About: https://redd.it/on9gb5
Example with dependencies: Spotify_Api.ahk.zip
About: https://redd.it/orzend
Example with dependencies: Spotify_Keys.ahk.zip
Usage and information: https://redd.it/orzend
| |
; 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) |