Skip to content

Instantly share code, notes, and snippets.

View Lorenzo501's full-sized avatar
🐲
Making dreams come to life!

Lorenzo Pappalettera Lorenzo501

🐲
Making dreams come to life!
View GitHub Profile
/*
This is a productivity enhancer plus some quality-of-life features that takes care of tedious tasks for you, saving time for what matters. Click on the tray icon to view hotkey info.
The compiled script can be found at: https://..
You won't have to dl the libraries nor have AHK installed if you use the compiled script, it will automatically create an INI file in AppData\Local.
This non-compiled script has an embedded INI at the bottom, but you have to follow these two steps before you can run this script:
Download and unzip archive in "Lib" folder: https://github.com/thqby/winrt.ahk
Download raw file into "Lib" folder: https://github.com/Descolada/UIA-v2/blob/main/Lib/UIA.ahk
********** EIGHT-HOTKEY REMOTE **********
Multi- and single-function hotkeys

Fork Privately

https://github.com/new/import

Undo Latest Commit

Press . on a repo webpage to open it in github.dev, go to the terminal, click on the btn to open GitHub Codespaces, click on the option 2 cores, 8 GB RAM, 32 GB storage, open the terminal there, copy & paste the following (it will show the pending change and asks you to confirm before it deletes the previous commit entirely, even from history):

git reset --hard HEAD~1  
git push origin -f
/*
Simply go to properties of the web app icon in the taskbar for example and set these values:
Target: "%UserProfile%\Downloads\AutoHotkey\Open VSCode Web Editor With Recent Folder.ahk"
Start in: %UserProfile%\Downloads\AutoHotkey
*/
#Requires AutoHotkey 2.0
#NoTrayIcon
Persistent()
A_WinDelay := -1
EVENT_OBJECT_NAMECHANGE := 0x800C
#Requires AutoHotkey 2.0
#NoTrayIcon
#HotIf WinActive("ahk_exe uTorrent.exe")
~RButton::
{
static status := 0
if (!status)
OnClipboardChange(HandleClipChanged, status := 1)