jeeswg wrote:[EDIT:] You could repeatedly retrieve the timestamp, via a Loop or SetTimer, and if doesn't change, minimise the window. Or check the status text.
Code: Select all
q:: ;media player classic - get time/status
ControlGetText, vTime, Static2, ahk_class MediaPlayerClassicW
ControlGetText, vStatus, Static3, ahk_class MediaPlayerClassicW ;e.g. blank/Opening.../Playing/Paused
MsgBox, % vTime "`r`n" vStatus
return
I am very sorry but I didn't understand a word of what you said, what exactly is that supposed to do?
Regardless, I managed to do something with what you said before the edit.
Code: Select all
^Numpad4::
SendMessage, 0x111, 888,,, ahk_class MediaPlayerClassicW ;MEDIA_PAUSE
WinMinimize, ahk_class MediaPlayerClassicW
return
It seems to always keep MPC minimized and paused, which is essentially what I was looking for, and no need for the "else" part I was originally adding. Thanks!
EDIT: Also, am I supposed to understand any of the "SendMessage, 0x111, 888,,," part or is it just something MPC related?