View Single Post
Old 29th July 2010, 13:36   #2
Join Date: Sep 2003
Posts: 27,873
if you're getting the printf(..) on playPause(..) then either the value of plugin.hwndParent has changed / become invalid or maybe Winamp is already playing and it's possible sending that message again will have no effect (i can't remember what the expected behaviour is and am not in a position to try out actual code).

you could try using SendMessage(plugin.hwndParent, WM_COMMAND, MAKEWPARAM(WINAMP_BUTTON3, 0), 0); to toggle the paused state (as i'll assume is what you're trying to achieve with that function.

DrO is offline   Reply With Quote