Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Tipp: Winamp Playstate auslesen

Allgemeines zum Thema EventGhost
Post Reply
Arne78
Posts: 2
Joined: Sat Apr 21, 2007 6:01 pm

Tipp: Winamp Playstate auslesen

Post by Arne78 »

Hallo,

das Winamp Plugin bietet (noch) keine M├Âglichkeit abzufragen, ob sich Winamp zur Zeit im Play, Pause oder Stop Modus befindet.

Diese Unterscheidung ist z.b. f├╝r das OSD hilfreich ;)

Anbei der Python-Code:

import win32gui
hWinamp = win32gui.FindWindow('Winamp v1.x', None)
hresult = win32gui.SendMessage(hWinamp, 1024, 0, 104)
if hresult == 1:
eg.globals.sOSD = "Play"
else:
eg.globals.sOSD = "Pause"

Gruß,
Arne78
Post Reply