Page 1 of 1

Set programms by name/ID from a module (my NetRemote)

Posted: Fri Nov 17, 2006 8:48 am
by ScanMan
Hi rel,

as you might have seen, i transmitted (just for fun at the moment with no funtionality) all scaned programm-names to the RC.
The aim is to have a (simple) programm-selection here.
My prob is: How to tell DD to set a defined programm - either by name or better by any id.
I can't find any usefull API-command. Only 'DDMODAPI_SET_CHANNEL_BY_CHNO' seems to be usefull.
But when i read the adequate field (wChNo) from TChlChannel, i always get 65535 in every result.
Am i on the wrong way ?
How can i get this feature workable ?

:?: ScanMan

Posted: Fri Nov 17, 2006 11:21 am
by rel
You can use DDMODAPI_SET_CHANNEL_BY_CHID with channel ID.

A channel ID is just index in the array. Index is starting from 0 as you can see below:

Code: Select all

Channels: packed array[0..MAX_CHANNELS - 1] of TChlChannel; //872*8000=6976000 bytes
also you can use DDMODAPI_GET_CHANNEL_ID if you want to focus on the current channel at startup.

idea: looks like it will be a nice solution for watching over LAN. An idea, show users signal level on the client DDMODAPI_GET_SIGNALINFO with PSignalInfo structure.