Skip to content

Instantly share code, notes, and snippets.

View pa-0's full-sized avatar

Peter Abbasi pa-0

View GitHub Profile
@pa-0
pa-0 / ToggleMuteMicrophone.ahk
Created October 12, 2025 01:12 — forked from natekford/ToggleMuteMicrophone.ahk
Toggle mute via Windows for a microphone using AHK v2.
#Requires AutoHotkey v2+
#SingleInstance Force
global MIC := "FIFINE T669"
Notify(false)
SetTimer(CheckExes, 1000)
*F24::
{
@pa-0
pa-0 / mute-mic.ahk
Created October 12, 2025 01:07 — forked from airstrike/mute-mic.ahk
AutoHotkey | Toggle microphone hotkey script (Windows+U)
;
; AutoHotkey Version: v1.1.22.06
; Language: English
; Platform: Windows 10
; Author: Andy Terra <github.com/airstrike>
;
; Script Function:
; Toggle Microphone Mute -- assumes it is located at WAVE:1, device #2
; Use the SoundCardAnalysis script to figure out where your mic is
; https://www.autohotkey.com/docs/commands/SoundSet.htm#Ex
@pa-0
pa-0 / active_border-ah1.ahk
Last active October 12, 2025 00:45 — forked from ericreeves/active_border.ahk
AHK Script for Active Window Border in Windows 11 22H2
#Requires AutoHotkey v1
; Inspiration / Code Jacked from the following resources:
; https://www.reddit.com/r/windowsporn/comments/x6299x/a_small_effect_on_window_switching/
; https://superuser.com/questions/1190658/fine-tune-this-red-border-around-active-window-ahk-script/1191059#1191059?newreg=d3acdcdab8714e76a5efeca9996e792f
; https://www.autohotkey.com/boards/viewtopic.php?f=6&t=110505
; https://discord.com/channels/898554690126630914/898556726108901386/1053662963585781760 # Komorebi Discord
;
#NoEnv
#SingleInstance, Force
@pa-0
pa-0 / Everything (AHKv1).ahk
Last active October 12, 2025 00:13 — forked from aviaryan/Everything.ahk
Everything Integration with AutoHotkey - Faster Search in Windows
EverythingPath = ;specify the path here
#IfWinActive ahk_class CabinetWClass
{
F6::
folder := GetFolder()
run, %EverythingPath% -path "%folder%"
return
}
@pa-0
pa-0 / Class_CustomFont.ahk
Created October 11, 2025 23:24 — forked from tmplinshi/Class_CustomFont.ahk
Load font from file or resource, without needed install to system. https://autohotkey.com/boards/viewtopic.php?f=6&t=813
/*
CustomFont v2.01 (2018-8-25)
---------------------------------------------------------
Description: Load font from file or resource, without needed install to system.
---------------------------------------------------------
Useage Examples:
* Load From File
font1 := New CustomFont("ewatch.ttf")
Gui, Font, s100, ewatch
@pa-0
pa-0 / powertoys.ahk
Created October 2, 2025 00:25 — forked from liberize/powertoys.ahk
AutoHotKey2 helper script for PowerToys
#NoTrayIcon
SendMode("Input")
SetWorkingDir(A_ScriptDir)
; -----------------------------------------------------------------------
; 1. PowerToys Peek
; Use only space key to trigger PowerToys Peek
; Credit: https://github.com/deanmongel/use-space-in-peek-of-powertoys
@pa-0
pa-0 / AntiAKF-UI.ahk
Created October 2, 2025 00:24 — forked from tdolan21/AntiAKF-UI.ahk
AutoHotKey v2 Anti-AFK tool with unique mouse movement pattern and small transparent overlay
; Requires AutoHotkey v2.0
; Download the gist and double click to run
; Enhanced Anti-AFK Script with Window Controls & Styling
; This script prevents AFK detection by performing mouse movements
; Press Ctrl+Alt+S to start/stop the anti-AFK feature
; Press Ctrl+Alt+X to exit the script completely
; Global variables
@pa-0
pa-0 / KeyboardClean.ahk
Created October 2, 2025 00:22 — forked from Nightblade/KeyboardClean.ahk
Block keyboard input so you can clean it while it's plugged in.
#Requires AutoHotkey v2
/*
KeyboardClean.ahk
------------------
Temporarily disables keyboard input to allow cleaning while plugged in.
Version History:
v2.2 - 2025-02-24 (Re-enable keyboard on exit as a precaution)
v2.1 - 2025-02-22 (Merged enable/disable functions into a toggle)
v2.0 - 2025-01-14
@pa-0
pa-0 / CircleClock.ahk
Created September 24, 2025 20:34 — forked from fischgeek/CircleClock.ahk
CircleProgress.ahk
#Include Gdip.ahk
#Include CircleProgressClass.ahk
#SingleInstance, Force
SysGet, mon, MonitorWorkArea
thickness := 15
spacing := thickness*2
hrDiam := thickness+spacing
minDiam := hrDiam+spacing
@pa-0
pa-0 / main.rs
Created August 25, 2025 21:18 — forked from MoAlyousef/main.rs
Compact packed expandable multiple tree
use fltk::{prelude::*, *};
static COFACTOR: utils::oncelock::Lazy<i32> = utils::oncelock::Lazy::new(|| (app::font_size() as f64 * 2.0) as i32);
fn prep_tree(t: &mut tree::Tree) {
if let Some(root) = t.next(&t.first().unwrap()) {
if root.is_open() {
let elems = root.children();
t.resize(t.x(), t.y(), t.w(), (elems + 1) * *COFACTOR);
} else {