Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Professional Forum - View Post
Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Original thread:
Post 1 made on Monday August 9, 2010 at 18:06
alpha
Long Time Member
Joined:
Posts:
September 2003
258
I was looking for a way to exclude certain channel numbers from an activity I made called the Channel Blaster . For example. The channels numbers 15,19,35,48,52,53,54,80 through 92 and 100 through 320. The highest channel number could be 400. Here is a script I use without the exclusions. Would there be a way to add a panel for excluded chanels that are listed in the label ?

//  Channel  Blaster
// Rotate wheel to chnge the channel number.
//  This is placed on page
//  - - - - - - - - - - - - - - - - - - - - - - Button and Panel - - - - - - - - -

var highnumber = widget ("HIGHNUMBER") ;  // the highest channel # is in the label
// HIGHNUMBER is not seen. It is placed off to the side and only seen in editor .

var pb = widget ("PRESSBUTTON") ;  // button changes the channel to the label
// This button has a script to execute the actions based on the label displayed

//  - - - - - - - - - - - - - - - - - - - - - - VARIABLES - - - - - - - - - - - - -

var hnlabel = highnumber. label ;// this is number put  in the label for HIGHNUMBER

var channel = 002 ;  // this  will be the starting channel number

//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

pb.label = channel ;                // starts at 2 in label of button

function showchannel ( ) { pb.label = channel; } ;// changes label with wheel

// - - - - - - - - - - - -ROTARY WHEEL - - - - - - - - - - - - - - - - - - - - - -

onRotary =  function ( clicks )
     {
    showchannel ( ) ;     // changes the label as the wheel is spun

    if ( channel >= hnlabel )          //  when label reaches high number
        { defaultchannel  = 2 ; } ; //  it changes  to number 2

    if ( channel < 002 )                         //  when label reaches  number 2
        { channel= hnlabel ; } ;  //  it changes  to number the high number

    if (clicks > 1)
        { channel+=10 ; } ;  // up ten numbers

    if (clicks < -1)
        { channel-- ; } ;  // down one number
     } ;

//- - - - - - - - - - - - - - - - - - - - - - E N D  - - - - - - - - - - - - - - -



Project Boredom 2 is here. [Link: mediafire.com]
------------------------
Check Version 1 & 2 out in the files section.


Hosting Services by ipHouse