CTRL RIGHT如果 Windows Media Player 當前處于焦點位置,我想在按 RIGHT 時另外發送。到目前為止,我取得的成就是它可以在 WMP 運行的情況下作業。如何更改腳本,使其僅在 WMP 視窗當前處于焦點時才做出反應?
SetTimer, KeepRunning
return
KeepRunning:
ifWinActive, "Windows Media Player"
{
Right::Send ^{Right}{Right}
}
return
PS:我是 AutoHotkey 的新手,所以歡迎任何其他代碼建議:)
uj5u.com熱心網友回復:
查看#If以創建背景關系相關的熱鍵和熱字串。
#Persistent
#If winactive("Windows Media Player")
Right::Send ^{Right}{Right}
#If
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/408678.html
標籤:
