AIMP Auto Pause/Resume
AIMP Auto Pause/Resume is a Python utility that automatically controls the playback of the AIMP music player based on the state of other audio sessions on your system. When any other application (e.g., a video player) is actively running the utility will pause AIMP. Once these sessions become inactive, AIMP will resume playing.
Features
- Automatic Detection: Monitors system audio sessions using the pycaw library.
- Seamless AIMP Control: Automatically pauses AIMP when another application is active and resumes playback when all other sessions are inactive.
Prerequisites
Installation
-
Clone the Repository:
git clone https://github.com/grootle/muteAIMP.git cd muteAIMP
-
Create a Virtual Environment (Optional):
python -m venv venv source venv/Scripts/activate # On Windows: venv\Scripts\activate
-
Install Dependencies:
pip install -r requirements.txt
If you do not have a
requirements.txt, you can install the packages individually:pip install pyaimp pycaw
Usage
-
Ensure AIMP is Installed:
Make sure AIMP is installed on your system and that the executable name isAIMP.exe. -
Run the Script:
python main.pyThe script will register for audio session notifications on your system. It will monitor the audio sessions and automatically pause AIMP if any other session becomes active, resuming playback when they become inactive.
-
Logging:
The console output will display debugging messages, such as active session changes and AIMP control actions (pause/resume).
Customization
-
AIMP Executable Name:
If your AIMP executable has a different name, update theAIMP_EXEconstant inmain.py. -
Polling Interval:
The script uses an infinite loop with a 1-second delay to keep running. Adjusttime.sleep(1)in the main loop if you need a different interval.
Release files for muteaimp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| muteaimp-0.1.0.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| muteaimp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.6 kB
Release files / muteaimp-0.1.0.tar.gz
| Download URL | muteaimp-0.1.0.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
255d5ce9bad63442ad6287062daa596eb4fd55db97ac70c0e1a354bdfb3f9a4a
|
|
BLAKE2b-256 checksum How to use checksums |
02bbb1e645b69daa39a7a5af1f91ebd8489a66d42e521585f2e44aa32f6276d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / muteaimp-0.1.0-py3-none-any.whl
| Download URL | muteaimp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f83a4724dee71434200638453571cdef0a5a17b0c4782f06ae82ce90710d28b8
|
|
BLAKE2b-256 checksum How to use checksums |
27d018fb7af450740b58664a512a21cbba8c5348eed8c8af0a5d72c89e134b8d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|