MLCountdown example

Repository of MainLobby Server plug-ins and updates not available in the current installation.
chuck99z28
Intermediate
Intermediate
Posts: 346
Joined: Mon Aug 27, 2012 2:10 pm
Contact:

MLCountdown example

Postby chuck99z28 » Tue May 07, 2013 2:28 pm

I'm trying the MLCountdown example from the wiki.
But it just deletes the countdown timer variables.
Does ML Countdown not work in 4?

What I really want to do is count down from 1 hour, 30 minutes to zero.
So I can eventually get the length of a movie and countdown the time until the movies ends.

Question:
"I would like to do something like this:

MLCountdown|SetTimer~1~Offset~160

I would hope this would set the timer to 160 seconds from the current time.

The syntax for the offset command and does it work like I want or will I have to convert my seconds into Minutes and seconds?

Answer:
Macro|MLCountdown|SetTimer~1~160~S!MLCountdown|Enable~1

The offset is a physical number based off the current time. The increment is how the offset number is interpreted.

User avatar
ronsatter
Is there life beyond Cinemar?
Is there life beyond Cinemar?
Posts: 1304
Joined: Mon Dec 04, 2006 1:40 am
Location: San Leandro, CA
Contact:

Re: MLCountdown example

Postby ronsatter » Tue May 07, 2013 9:51 pm

chuck99z28 wrote:I'm trying the MLCountdown example from the wiki.
But it just deletes the countdown timer variables.
Does ML Countdown not work in 4?

What I really want to do is count down from 1 hour, 30 minutes to zero.
So I can eventually get the length of a movie and countdown the time until the movies ends.

Question:
"I would like to do something like this:

MLCountdown|SetTimer~1~Offset~160

I would hope this would set the timer to 160 seconds from the current time.

The syntax for the offset command and does it work like I want or will I have to convert my seconds into Minutes and seconds?

Answer:
Macro|MLCountdown|SetTimer~1~160~S!MLCountdown|Enable~1

The offset is a physical number based off the current time. The increment is how the offset number is interpreted.

Not sure this function made it to ML4. If it did, I would guess that you would need to convert 1 hr and 30 mins to seconds and use that number as your offset. I have never used this function ... anyone else?

Ron
If it ain't broke ... don't fix it!

EUROTECH
Senior Member
Senior Member
Posts: 229
Joined: Mon Aug 01, 2011 6:10 pm
Location: New Jersey
Contact:

Re: MLCountdown example

Postby EUROTECH » Tue May 07, 2013 10:02 pm

chuck99z28 wrote:I'm trying the MLCountdown example from the wiki.
But it just deletes the countdown timer variables.
Does ML Countdown not work in 4?

What I really want to do is count down from 1 hour, 30 minutes to zero.
So I can eventually get the length of a movie and countdown the time until the movies ends.

Question:
"I would like to do something like this:

MLCountdown|SetTimer~1~Offset~160

I would hope this would set the timer to 160 seconds from the current time.

The syntax for the offset command and does it work like I want or will I have to convert my seconds into Minutes and seconds?

Answer:
Macro|MLCountdown|SetTimer~1~160~S!MLCountdown|Enable~1

The offset is a physical number based off the current time. The increment is how the offset number is interpreted.

Don't know if this would help you but in the sample scenes for the ipad, the internet radio, Pandora, and music all have countdown timers that uses a percent variable. I saw the same type of variable for playing movies under {{av_x_percent}} where "x" would be your av family item number.

Eurotech


Return to “MLServer Plug-Ins”

Who is online

Users browsing this forum: No registered users and 1 guest