Author Topic: How to know if XMP is playing or paused programmatically?  (Read 221 times)

rafaews

  • Posts: 4
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?
« Last Edit: 19 Apr '22 - 23:26 by rafaews »

rafaews

  • Posts: 4
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

  • Administrator
  • Posts: 24418
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

  • Posts: 4
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).

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
« Last Edit: 20 Apr '22 - 17:44 by rafaews »

Ian @ un4seen

  • Administrator
  • Posts: 24418
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