|
|
#1 |
|
Junior Member
Join Date: Nov 2001
Posts: 5
|
Detection in VB
Hi all
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. Any ideas? |
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Feb 2002
Location: The backside of the universe on the trailing edge of eternity
Posts: 238
|
IPC_ISPLAYING
|
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Nov 2001
Posts: 5
|
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. |
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Feb 2002
Location: The backside of the universe on the trailing edge of eternity
Posts: 238
|
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.
|
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Nov 2001
Posts: 5
|
Great, thanks Gourou
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|