360 Secure SkillHub
360 安全技能中心

AIMP-player

在 Windows 上通过 AIMP 命令行开关控制本机已运行的 AIMP 播放器:播放、暂停、播放/暂停切换、上一首、下一首和停止。需预先安装并启动 AIMP,以带引号的完整路径调用 AIMP.exe,声明无需 Python 或额外依赖。

krasen007
krasen007
热度 29.23
最近更新 2026-07-30 04:05:59
分类:自动化依赖:代码执行应用场景:自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add krasen007/music
Metadata
name
aimp-controller
description
Control AIMP music player via native command-line switches (play, pause, stop, next, prev).
version
1.0.0
author
community
license
MIT
platforms
["windows"]
metadata
{"hermes":{"tags":["Music","AIMP","Audio","Player","Playback","Control"],"homepage":"https://aimp.ru"}}
prerequisites
{"commands":["terminal"]}

aimp-controller

Direct AIMP music player control using standard Windows command-line switches. No Python or external dependencies required — just AIMP installed and running.

Prerequisites

  1. AIMP must be installed on Windows.
  2. AIMP must be running before you send commands.

Check if AIMP is running:

tasklist /FI "IMAGENAME eq aimp.exe"

Quick Start

# Play/Pause toggle
aimp-player playpause

# Start playback
aimp-player play

# Pause playback
aimp-player pause

# Skip next song
aimp-player next

# Skip previous song
aimp-player prev

# Stop music
aimp-player stop

Usage Patterns

Toggle Play/Pause

"C:\Program Files (x86)\AIMP\AIMP.exe" /PLAYPAUSE

Start Playback Explicitly

"C:\Program Files (x86)\AIMP\AIMP.exe" /PLAY

Pause Playback Explicitly

"C:\Program Files (x86)\AIMP\AIMP.exe" /PAUSE

Skip to Next Song

"C:\Program Files (x86)\AIMP\AIMP.exe" /NEXT

Skip Previous Song

"C:\Program Files (x86)\AIMP\AIMP.exe" /PREV

Stop Music

"C:\Program Files (x86)\AIMP\AIMP.exe" /STOP

AIMP Command Switches Reference

Switch Description
/PLAY Start playback
/PAUSE Pause playback
/PLAYPAUSE Toggle between play and pause
/NEXT Skip to next track
/PREV Skip to previous track
/STOP Stop all playback immediately

Examples with Hermes

Simple command in a conversation:

# Ask me to skip the next song
"C:\Program Files (x86)\AIMP\AIMP.exe" /NEXT

Stop current song, then close the player entirely:

# Stop playback and exit the application
"C:\Program Files (x86)\AIMP\AIMP.exe" /STOP

Notes

  • Commands execute immediately and silently.
  • AIMP responds to switches in real-time while playing.
  • Windows Explorer path with spaces must be quoted: "C:\Program Files (x86)\AIMP\AIMP.exe".

Troubleshooting

AIMP not responding:

# Make sure AIMP is running first
tasklist /FI "IMAGENAME eq aimp.exe"

# If not running, start it manually:
"C:\Program Files (x86)\AIMP\AIMP.exe"

Command fails with exit code 1:

  • AIMP might be closed or unavailable.
  • Try launching AIMP and retrying the switch.