如何為 Windows Media Player 編寫自己的「暫停」按鈕腳本?

如何為 Windows Media Player 編寫自己的「暫停」按鈕腳本?

我想要某種方法來建立一個快捷按鈕來暫停 Windows 媒體播放器。我的鍵盤沒有暫停/播放按鈕,所以我想找到一種免費的方法來模仿它。

答案1

下列自動熱鍵腳本對我有用:

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn  ; Recommended for catching common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

#Esc::Media_Play_Pause

這個答案也涵蓋其他選項

答案2

您不一定需要使用 AHK 並保持其運作(當然,除非您也出於其他原因使用它)。一個按鍵重新映射器應用程序,例如銳鍵還應該能夠提供幫助,允許您重新映射任何未使用的鍵以充當播放/暫停:

1

這樣,不需要額外的進程在背景運行。

相關內容