28th April 2002, 14:07
Is there a way to detect when the user have pressed on the stop button? or when a song stops?
I have tried the "IPC_GETOUTPUTTIME" but it's not working very time.
28th April 2002, 21:31
Yes, but in this case it will not work. The program must detect if the user have pressed stop or if the song have ended. Because if the song have ended a new song will start.
If i use IPC_ISPLAYING a new song will start if the start button is pressed.
Maby i shall mention i'm trying to write a plugin so the songs in the playlist gets really randomly played.
28th April 2002, 23:08
haha, yeah, that woulda helped...hmmmmmm............ ok, set a timer for 50 milliseconds, in this timer, set a static for the previous song name and a static for previous play state, every time, check the song title, AND check for ISPLAYING, if ISPLAYING is Stopped, then you know they hit stop, if the previous time, it was Playing, now, check the Title, if the previous title is different than the current, then you know the song has changed, now, do what you gotta do, change the song or whatever, then at the end, set your statics for the new values so you can check them 50 milliseconds from then.
vBulletin® v3.8.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.