Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A lightweight Windows media control tool that allows you to quickly control media playback through the command line or global hotkeys. 一个轻量级的 Windows 媒体控制工具,允许您通过命令行或全局热键快速控制媒体播放。

License

Notifications You must be signed in to change notification settings

SLSYSL/SoundCtrl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SoundCtrl / Audio Control

A lightweight Windows media control tool that allows you to quickly control media playback via the command line or global hotkeys.

README Language: English(Current) / 简体中文 / 繁體中文

Features

  • 🎵 Media Playback Control (Play/Pause, Previous Track, Next Track, Stop)
  • 🔊 Volume Control (Increase, Decrease, Mute Toggle)
  • ⌨️ Global Hotkey Support (Background Mode)
  • 🚀 Lightweight, no dependencies, implemented with native Windows APIs

System Requirements

  • Windows 7 or later

Usage

Background Mode (Default Mode)

Method 1:

  • Run the program directly.

Method 2:

  • Run in Command Prompt (CMD) or PowerShell: .\SoundCtrl.exe back

Command Line Mode

Run in Command Prompt (CMD) or PowerShell:

.\SoundCtrl.exe <command>

Command Examples:

  • .\SoundCtrl.exe play - Play/Pause

  • .\SoundCtrl.exe next - Next Track

  • .\SoundCtrl.exe back - Background Mode

Command

  • play - Play/Pause
  • next - Next Track
  • prev - Previous Track
  • up - Increase Volume (increases by 2 levels each time)
  • down - Decrease Volume (decreases by 2 levels each time)
  • mute - Mute/Unmute
  • stop - Stop Playback

Hotkeys for Background Mode

  • Right Ctrl + Q - Exit the program
  • Right Ctrl + F1 - Play/Pause
  • Right Ctrl + F2 - Previous Track
  • Right Ctrl + F3 - Next Track
  • Right Ctrl + F4 - Increase Volume (increases by 2 levels each time)
  • Right Ctrl + F5 - Decrease Volume (decreases by 2 levels each time)
  • Right Ctrl + F6 - Mute/Unmute
  • Right Ctrl + F7 - Stop Playback

Virtual Key Code Correspondence

  • 0xB0 - Next Track
  • 0xB1 - Previous Track
  • 0xB2 - Stop Playback
  • 0xB3 - Play/Pause
  • 0xAF - Increase Volume (increases by 2 levels each time)
  • 0xAE - Decrease Volume (decreases by 2 levels each time)
  • 0xAD - Mute/Unmute

Notes

  • Do not run multiple instances of this program, as it may cause hotkey conflicts.
  • Hotkeys may not respond in certain scenarios.

Developer

  • SLSYSL (LANREN)

License

This project is licensed under the MIT License. For details, please refer to the LICENSE file.

About

A lightweight Windows media control tool that allows you to quickly control media playback through the command line or global hotkeys. 一个轻量级的 Windows 媒体控制工具,允许您通过命令行或全局热键快速控制媒体播放。

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages