Skip to content

Instantly share code, notes, and snippets.

@ThioJoe
ThioJoe / Icon-Upscale.bat
Last active January 31, 2025 20:34
Low-Res Icon Upscaler Batch Script
@echo off
setlocal enabledelayedexpansion
rem | Lines beginning with 'rem' are comments
rem -------------------------------------------------------------------------------------------
rem | "Icon Upscaler" Script by ThioJoe: https://github.com/ThioJoe
rem | I created this script specifically for upscaling very low res (such as 256x256) icons like those in Windows. It uses a combination of Image Magick (to first improve the transparency edges) and the RealCugan-ncnn-vulkan upscaler which seems to perform the best for this use case. Of course, the script can be used for all sorts of images, but I have found this to yield the best results of any other method, and better than just using an upscaler alone.
@KohGeek
KohGeek / sortPlaylist.user.js
Last active July 26, 2025 18:25 — forked from sunnywiz/sortWL.js
SortYoutubePlaylistByDuration
/** THE SCRIPT HAS BEEN MIGRATED TO A PROPER REPOSITORY **/
/** https://github.com/KohGeek/SortYoutubePlaylistByDuration/ **/
/** The script is left here just for legacy purpose, please direct all downloads and questions to the new repository **/
/** Changelog 24/12/2023
@anonymous1184
anonymous1184 / GetUrl.ahk
Last active November 9, 2025 12:40
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)
@wi1k1n
wi1k1n / mouse_pos_show.ahk
Last active November 7, 2024 01:06
AutoHotKey: Mouse Position Helper. Simply run the script and it will show the current cursor coordinates in different CoordModes. Hotkey Strokes are also available to quickly copy current coordinates
#Persistent
CoordMode, ToolTip, screen
SetTimer, WatchCursor, 100
return
WatchCursor:
CoordMode, mouse, Screen ; Coordinates are relative to the desktop (entire screen).
MouseGetPos, x_1, y_1, id_1, control_1
CoordMode, mouse, Window ; Synonymous with Relative and recommended for clarity.
@park-brian
park-brian / AdvancedWindowSnap.ahk
Last active June 2, 2025 18:33 — forked from AWMooreCO/AdvancedWindowSnap.ahk
Advanced Window Snap is a script for AutoHotKey that expands upon Windows built-in window-snapping hotkeys.
/**
* Advanced Window Snap
* Snaps the active window to a position within a user-defined grid.
*
* @author Andrew Moore <[email protected]>
* @contributor jballi
* @contributor park-brian
* @contributor shinywong
* @version 1.2
*/
@db93n2
db93n2 / lightshot+.ahk
Last active October 25, 2023 13:06
(autohotkey) - improvements for lightshot (screenshot tool)
/*
[folders]
folder_1=
folder_2=
folder_3=
[settings]
prefix = LS_
time_format = yyyyMMddhhmmss
fullscreen_hotkey =
@db93n2
db93n2 / get_selected.ahk
Created November 13, 2017 10:37
(autohotkey) - gets selected text (or path of selected file/folder)
get_selected(wait_time="0.3") {
revert_clipboard := clipboardAll
clipboard := "" ; clear first
send ^{c}
clipWait, % wait_time
selected := clipboard
clipboard := revert_clipboard
return selected