Support
All support resources for our products. Here you can find answers to frequently asked questions, discuss with other users, recover a lost license code or file a support request.
Forum closed
This forum was closed and turned into an archive effective April 21, 2018. It is no longer possible to create new topics or reply to existing topics.

Thanks everyone for all the great questions and contributions over the years.

Please use the Contact form to get in touch.

Remote Buddy Forum

Overview 

AuthorThread
User

19.09.2010 08:51:58
Index through an array of channels

This posting is older than 6 months and can contain outdated information.
Hi;

I want to be able to index up and down through the cable TV channels, not all of which I am subscribed to, using the forward and backwards keys.

I have actions mapped to the numbers 0-9 in a custom behavior and so I would want to do something like this:

array(100,110,123,150,200,201,495.700,877,900) 
dim i = 0 
if press = up then i=i+1 
else i=i-1 
var chan = array[i] 
send chan as keypresses

I guess that this would have to be done with applescript, but how am I going to know which was the last channel selected as I don't think that applesecript supports session variables ??

I somehow need to make the index variable (i) persistent so that each time the script is run it will continue fro the previous index value ??

Thanks

PeterC

These entries from the FAQ may be relevant to this topic:

Configuration
Hardware - Apple® Remote
Thread-display::