Skip to Content
It is currently July 16th, 2019, 11:25 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: September 17th, 2018, 10:53 am 
Offline
Senior User
Senior User

Joined: September 12th, 2012, 9:42 pm
Posts: 89
Hi. I am looking for the command like pal.wait for time
But the action is I want to do is: wait for active deck to stop playing

Thanks!


Top
 Profile  
Reply with quote  
PostPosted: September 17th, 2018, 2:50 pm 
Offline
SVS Member
SVS Member

Joined: October 15th, 2003, 11:59 pm
Posts: 4728
Location: Los Angeles - A Little West Of Nashville
You can do this by using a loop and keep checking the status of the Active Deck (or Deck A or Deck B).

_________________
- DJ Dee
- Spacial Volunteer Support (SVS)
- Custom PAL services: www.palscripts.com
- http://www.AlternativeHD.com
- http://www.lahotcountry.com


Top
 Profile  
Reply with quote  
PostPosted: September 18th, 2018, 5:31 am 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 7860
Location: Aachen (Germany)
The ActivePlayer function will never return a stopped player.
You can copy the ActivePlayer reference into a variable and keep watching that variable until the player goes into psIdle Status or something like that. (sorry, can't remember if that is the correct status name, playing is psPlaying and paused is psPaused, but this could as well be psStopped or something like that)

If you loop and watch the ActivePlayer function instead you will get DeckA while that is playing and DeckB while that is playing, but never will you get the Idle player.

_________________
Benedikt Bauer - SVS (Spacial Volunteer Support)

We're offering custom PAL / PHP code and general SAM assistance at palscripts.com

My Project:
Send "Now Playing" from SAM to Twitter and/or Facebook | Sourcecode


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group