A simple AutoHotkey script that provides a toggleable push-to-talk (PTT) functionality using the F8 key, along with a visual indicator by controlling the Scroll Lock LED. Designed for users who prefer a hands-free toggle rather than holding a key down.
-
๐ Toggle Push-to-Talk with
F9 -
๐ฎ Simulates
F8being held down (not just tapped) -
๐ก Scroll Lock LED indicates PTT status (ON = active)
-
๐ Clean exit with
F10, ensuring:- F8 is released
- Scroll Lock LED is turned off
- AutoHotkey (v1.1 or v2 โ this script uses v1 syntax)
| Key | Function |
|---|---|
| F9 | Toggle Push-to-Talk (F8 down/up) |
| F10 | Exit the script and reset LED |
-
Install AutoHotkey
-
Download or clone this repository:
git clone https://github.com/Houssemamor/PushToToggle.git
-
Run the script:
PushToToggle/PushToToggle.ahk
When you press F9:
- If PTT is off, it simulates pressing and holding
F8and turns on the Scroll Lock LED. - If PTT is on, it releases
F8and turns off the Scroll Lock LED.
This allows you to visually know when you're actively broadcasting, especially useful in voice chat applications (e.g., Discord, TeamSpeak, etc.).
You can easily modify:
- The toggle key (
F9) - The simulated key (
F8) - Add sound notifications or tray tips for feedback
Let me know if you want a customizable version!
MIT License โ feel free to use, modify, and share.
Made with ??? using AutoHotkey