DVDlab Pro - How to force button activation after menu timeo
DVD-Software.info Forum Index DVD-Software.info
Your one stop source for DVD Software
 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
DVDlab Pro - How to force button activation after menu timeo
 
Post new topic   Reply to topic    DVD-Software.info Forum Index -> DVD Authoring
Author Message
Uwe Kotyczka
Guest





Posted: Thu Nov 10, 2005 5:40 am    Post subject: DVDlab Pro - How to force button activation after menu timeo Reply with quote

Hi, I have DVDlab Pro and I would like to press the currently selected
button after a menu timeout.
With PBC -> Duration=5, Force Activate Btn=2
I can press button 2 after a timeout of 5 seconds.
However I would like not to press button 2 but the
currently highlighted button $SPRM10.
How to achieve that?

Back to top
Ken Maltby
Guest





Posted: Thu Nov 10, 2005 5:40 am    Post subject: Re: DVDlab Pro - How to force button activation after menu t Reply with quote

"Uwe Kotyczka" <uwe.kotyczka@web.de> wrote in message
news:1131583585.093442.172420@z14g2000cwz.googlegroups.com...
Quote:
Hi, I have DVDlab Pro and I would like to press the currently selected
button after a menu timeout.
With PBC -> Duration=5, Force Activate Btn=2
I can press button 2 after a timeout of 5 seconds.
However I would like not to press button 2 but the
currently highlighted button $SPRM10.
How to achieve that?


I'll look into doing it that way, but until then, just off
the top of my head; can you replace "Force Activate
Btn=2" with a call to another dummy PGC?

Luck;
Ken
Back to top
Uwe Kotyczka
Guest





Posted: Thu Nov 10, 2005 3:47 pm    Post subject: Re: DVDlab Pro - How to force button activation after menu t Reply with quote

Quote:
Hi, I have DVDlab Pro and I would like to press the currently selected
button after a menu timeout.
With PBC -> Duration=5, Force Activate Btn=2
I can press button 2 after a timeout of 5 seconds.
However I would like not to press button 2 but the
currently highlighted button $SPRM10.
How to achieve that?


I'll look into doing it that way, but until then, just off
the top of my head; can you replace "Force Activate
Btn=2" with a call to another dummy PGC?

Yes, of course this was my first idea:
Creating a dummy PGC doing something like
GPRM1 = SPRM10
SetHL_BTN GPRM1
<Press_BTN> GPRM1

However I could not figure it out how to code an event
<Press_BTN> GPRM1
so that the highlighted button will be pressed _programmatically_.
On the other hand, "Force Activate Btn" is just doing that. So it
should be possible at all.

Any idea?
Back to top
Ken Maltby
Guest





Posted: Thu Nov 10, 2005 5:46 pm    Post subject: Re: DVDlab Pro - How to force button activation after menu t Reply with quote

"Uwe Kotyczka" <uwe.kotyczka@web.de> wrote in message
news:1131616041.087974.267480@g49g2000cwa.googlegroups.com...
Quote:
Hi, I have DVDlab Pro and I would like to press the currently selected
button after a menu timeout.
With PBC -> Duration=5, Force Activate Btn=2
I can press button 2 after a timeout of 5 seconds.
However I would like not to press button 2 but the
currently highlighted button $SPRM10.
How to achieve that?


I'll look into doing it that way, but until then, just off
the top of my head; can you replace "Force Activate
Btn=2" with a call to another dummy PGC?

Yes, of course this was my first idea:
Creating a dummy PGC doing something like
GPRM1 = SPRM10
SetHL_BTN GPRM1
Press_BTN> GPRM1

However I could not figure it out how to code an event
Press_BTN> GPRM1
so that the highlighted button will be pressed _programmatically_.
On the other hand, "Force Activate Btn" is just doing that. So it
should be possible at all.

Any idea?


It looks like you already understand the following:

Virtual Machine DVD Command: SetNVTMR
This command changes the contents of the system parameter
registers SPRM9 and SPRM10. SPRM9 defines the timeout
duration to (branch to) play a specified PGC after the timeout
expires. The new value for SPRM9 can be one of the following:

1) the value is in another GPRM register, or
2) a 16-bit constant value.

The value in SPRM9 decreases by 1 each second. When the
value reaches zero, the PGC defined in SPRM10 plays. The
countdown temporarily pauses at a system menu (title or VTS
menu) or if the user pauses playback via the remote control.
The countdown resumes when in the VTS title domain again,
or when playback reaches a still cell (cell's still time defined as
255).

This command can be present only in the VTS title domain.

DVD Command SetNVTMR timer=GPRM0,PGCN=1

Hex Encoding 42 00 00 00 00 01 00 00

DVD Command SetNVTMR timer=100,PGCN=1

Hex Encoding 52 00 00 64 00 01 00 00

This command can be combined with the compare GPRM
operations for conditional branching. When combining, this
command is executed only if the result of the comparison is
true. Compare to a constant is not allowed.

Compare to another GPRM register and SetNVTMR

DVD Command If (GPRM0 == GPRM1) SetNVTMR timer=
GPRM2 PGCN=12

Hex Encoding 42 20 00 02 00 0C 00 01

Compare to another SPRM register and SetNVTMR

DVD Command If (GPRM0 == SPRM0)SetNVTMR timer=100,
PGCN=1

Hex Encoding 52 20 00 64 00 01 00 80

SetNVTMR and Link

DVD Command SetNVTMR timer=100,PGCN=1;LinkPGCN 2

Hex Encoding 52 04 00 64 00 01 00 02

-----------------------

The other part would be to set a register with btn number or
more likely the PGCN# for the button press of the buttons as
they are highlighted. Then set SPRM10 == to that register.
After that you would use the NVTMR command.

Just a quick look, I haven't tried it, but it should work.

Luck;
Ken
Back to top
Uwe Kotyczka
Guest





Posted: Thu Nov 10, 2005 10:28 pm    Post subject: Re: DVDlab Pro - How to force button activation after menu t Reply with quote

Ken, thank you very much for your attention.

Maybe I did not state clear enough what I want to achieve.

It's no problem for me to do this:

Create a dummy PGC, ask SPRM10 for it's current value
and the highlight this button (which is actually not necessary
since it is already highlighted) and the link to the PGC
corresponding to the button.

Each button has 3 highlight states: "not highlight", "highlighted"
and "pressed" with 3 color/transparency sets.
What I would like to do is to set the button into the state "pressed"
for some time and then link to the next PGC.
The only thing I am missing is howto make that button look
"pressed" programmatically. The "Force Activate Btn" feature
of DVDlab Pro does so, so it should be possible.

Quote:
The other part would be to set a register with btn number or
more likely the PGCN# for the button press of the buttons as
they are highlighted. Then set SPRM10 == to that register.
After that you would use the NVTMR command.

Sorry, could not find any "NVTMR" command.
Back to top
Ken Maltby
Guest





Posted: Fri Nov 11, 2005 5:25 am    Post subject: Re: DVDlab Pro - How to force button activation after menu t Reply with quote

"Uwe Kotyczka" <uwe.kotyczka@web.de> wrote in message
news:1131640110.167688.106400@g47g2000cwa.googlegroups.com...
Quote:
Ken, thank you very much for your attention.

Maybe I did not state clear enough what I want to achieve.

It's no problem for me to do this:

Create a dummy PGC, ask SPRM10 for it's current value
and the highlight this button (which is actually not necessary
since it is already highlighted) and the link to the PGC
corresponding to the button.

Each button has 3 highlight states: "not highlight", "highlighted"
and "pressed" with 3 color/transparency sets.
What I would like to do is to set the button into the state "pressed"
for some time and then link to the next PGC.
The only thing I am missing is howto make that button look
"pressed" programmatically. The "Force Activate Btn" feature
of DVDlab Pro does so, so it should be possible.

The other part would be to set a register with btn number or
more likely the PGCN# for the button press of the buttons as
they are highlighted. Then set SPRM10 == to that register.
After that you would use the NVTMR command.

Sorry, could not find any "NVTMR" command.


It is the real VM command that DVDLab is using to enable
this function. It's the Navigation Timer (NVTMR) that uses
the SPRM9 & SPRM10 registers to branch to a PCGN
(pointed to by the # [ 1-99] in SPRM10) after the number of
seconds in SPRM9 have decremented to 0)

You don't want to read SPRM10, you want to set it, before
it gets read when the NVTMR VM command is called. The
current highlighted button is in SPRM8 so you could use that.
(The way I described is a little more flexible, but probably
not needed in this case.)

It sounds like you want to stay within the built-in functions
of DVD Lab, which I don't have loaded at this time. As to
how to set the "Highlight State" of the button in DVD Lab,
I can't recall. A button will be in one of four states: Display,
Selected, Action, and another one I've forgotten. Basically,
the authoring program assigns different parts of the 16 color
palette to each state. I also don't recall what actions will or
will not, trigger a change in the buttons state; nor any VM
commands to do so.

Luck;
Ken
Back to top
 
Post new topic   Reply to topic    DVD-Software.info Forum Index -> DVD Authoring All times are GMT
Page 1 of 1

 
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 vote in polls in this forum


Office Forum Access Forum Exchange Server

Powered by phpBB