This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * 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 | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| [folders] | |
| folder_1= | |
| folder_2= | |
| folder_3= | |
| [settings] | |
| prefix = LS_ | |
| time_format = yyyyMMddhhmmss | |
| fullscreen_hotkey = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| get_selected(wait_time="0.3") { | |
| revert_clipboard := clipboardAll | |
| clipboard := "" ; clear first | |
| send ^{c} | |
| clipWait, % wait_time | |
| selected := clipboard | |
| clipboard := revert_clipboard | |
| return selected |