How to know if XMP is playing or paused programmatically?

Started by rafaews,

rafaews

The title doesn't change like with Winamp which adds [Paused] to the WinTitle.
I can't get much information from Microsoft Active Accessibility (MSAA).
The tray icon does show the current track's current playing time but the info is only updated on mouseover.
I was able to get the file title with IPC_GETPLAYLISTTITLE but that doesn't help much.
Checked shellhook and wineventhook messages. Nothing.
XMPlay doesn't mess with Windows' registry I thing..
xmpcontrol didn't help either.

Anything else I should try?

rafaews

First working option: NirSoft's OpenedFilesView.

http://www.nirsoft.net/utils/opened_files_view.html

It monitors even the position of the file being played. In % and in bytes. If it changes = playing, if not = paused.

Ian @ un4seen

XMPlay supports Winamp's IPC_ISPLAYING message, so you can send that to the XMPlay window to check whether it's currently playing (0=stopped, 1=playing, 3=paused).

rafaews

Quote from: Ian @ un4seenXMPlay supports Winamp's IPC_ISPLAYING message, so you can send that to the XMPlay window to check whether it's currently playing (0=stopped, 1=playing, 3=paused).

Lovely, Ian! Thank you. Where can I get the whole list of messages? I don't think I came across them when researching.

BTW, IPC_Playing is working. ;D

Ian @ un4seen

Good to hear you've got it working. These are the Winamp messages that are currently supported by XMPlay:

IPC_DELETE
IPC_STARTPLAY
IPC_ISPLAYING
IPC_GETOUTPUTTIME
IPC_JUMPTOTIME
IPC_SETPLAYLISTPOS
IPC_SETVOLUME
IPC_SETPANNING
IPC_GETLISTLENGTH
IPC_GETLISTPOS
IPC_GETPLAYLISTFILE
IPC_GETPLAYLISTTITLE
IPC_GETINIDIRECTORY