Commercial Skip
dsmith
Posts: 30
Hello, I want to create some code that references another button for the purpose of skipping commercials. My code is as follows:
// UVERSE Controls
BUTTON_EVENT[vdvTP,38]
BUTTON_EVENT[vdvTP,39]
BUTTON_EVENT[vdvTP,40]
BUTTON_EVENT[vdvTP,41]
BUTTON_EVENT[vdvTP,42]
BUTTON_EVENT[vdvTP,43]
BUTTON_EVENT[vdvTP,44]
BUTTON_EVENT[vdvTP,45]
BUTTON_EVENT[vdvTP,46]
BUTTON_EVENT[vdvTP,47]
BUTTON_EVENT[vdvTP,48]
BUTTON_EVENT[vdvTP,49]
BUTTON_EVENT[vdvTP,50]
BUTTON_EVENT[vdvTP,51]
BUTTON_EVENT[vdvTP,52]
BUTTON_EVENT[vdvTP,53]
BUTTON_EVENT[vdvTP,54]
BUTTON_EVENT[vdvTP,55]
BUTTON_EVENT[vdvTP,56]
BUTTON_EVENT[vdvTP,57]
BUTTON_EVENT[vdvTP,58]
BUTTON_EVENT[vdvTP,59]
BUTTON_EVENT[vdvTP,60]
BUTTON_EVENT[vdvTP,61]
BUTTON_EVENT[vdvTP,62] // Record
BUTTON_EVENT[vdvTP,63]
BUTTON_EVENT[vdvTP,64]
BUTTON_EVENT[vdvTP,65]
BUTTON_EVENT[vdvTP,66]
BUTTON_EVENT[vdvTP,67]
BUTTON_EVENT[vdvTP,68] // Skip 7 seconds FF
BUTTON_EVENT[vdvTP,69]
BUTTON_EVENT[vdvTP,70] // Commercial Skip (5 times Skip)
{
PUSH:
{
TO [UVERSE,BUTTON.INPUT.CHANNEL-37]
}
}
As you can [vdvTP,68] can be pressed 5 times to get the required results, but how can I write the code for button 70 to run 5 times?
Thanks, Donald
// UVERSE Controls
BUTTON_EVENT[vdvTP,38]
BUTTON_EVENT[vdvTP,39]
BUTTON_EVENT[vdvTP,40]
BUTTON_EVENT[vdvTP,41]
BUTTON_EVENT[vdvTP,42]
BUTTON_EVENT[vdvTP,43]
BUTTON_EVENT[vdvTP,44]
BUTTON_EVENT[vdvTP,45]
BUTTON_EVENT[vdvTP,46]
BUTTON_EVENT[vdvTP,47]
BUTTON_EVENT[vdvTP,48]
BUTTON_EVENT[vdvTP,49]
BUTTON_EVENT[vdvTP,50]
BUTTON_EVENT[vdvTP,51]
BUTTON_EVENT[vdvTP,52]
BUTTON_EVENT[vdvTP,53]
BUTTON_EVENT[vdvTP,54]
BUTTON_EVENT[vdvTP,55]
BUTTON_EVENT[vdvTP,56]
BUTTON_EVENT[vdvTP,57]
BUTTON_EVENT[vdvTP,58]
BUTTON_EVENT[vdvTP,59]
BUTTON_EVENT[vdvTP,60]
BUTTON_EVENT[vdvTP,61]
BUTTON_EVENT[vdvTP,62] // Record
BUTTON_EVENT[vdvTP,63]
BUTTON_EVENT[vdvTP,64]
BUTTON_EVENT[vdvTP,65]
BUTTON_EVENT[vdvTP,66]
BUTTON_EVENT[vdvTP,67]
BUTTON_EVENT[vdvTP,68] // Skip 7 seconds FF
BUTTON_EVENT[vdvTP,69]
BUTTON_EVENT[vdvTP,70] // Commercial Skip (5 times Skip)
{
PUSH:
{
TO [UVERSE,BUTTON.INPUT.CHANNEL-37]
}
}
As you can [vdvTP,68] can be pressed 5 times to get the required results, but how can I write the code for button 70 to run 5 times?
Thanks, Donald
0
Comments
yeah, I suppose I'm just lazy. to be honest, I'd probably just do a quick timeline myself.