Jump to content

Tuned Channel Number


Recommended Posts

Posted

Hi,

 

i'm writing a plugin to lock some channels. I need to know what is the channel number tuned. The TTuner object in the Execute method doesn't contain this property. Is there a way to know the channel number? Is there a code for Sendmessage method?

 

Thank you.

G.

  • 2 weeks later...
Posted (edited)

Is there a getchannel function in the plugins API?

Edited by novis
Posted

type
 TSetChannel = packed record
ChannelNr: Integer;
ChannelName: PChar;
 end;
 PSetChannel = ^TSetChannel;

const
 MSG_GETCHANNEL = $2203;
 WM_DVBVIEWER = $B2C2;

...
var
 setchannel : TSechannel;
 sendmessage(dvbvhandle,WM_DVBVIEWER,GETCHANNEL ,dword(@setchannel ));
....

should give you the channelnumber.

Posted
type
 TSetChannel = packed record
ChannelNr: Integer;
ChannelName: PChar;
 end;
 PSetChannel = ^TSetChannel;

const
 MSG_GETCHANNEL = $2203;
 WM_DVBVIEWER = $B2C2;

...
var
 setchannel : TSechannel;
 sendmessage(dvbvhandle,WM_DVBVIEWER,GETCHANNEL ,dword(@setchannel ));
....

should give you the channelnumber.

 

Thank you very much. When the plugin is ready i release it in this forum.

 

Bye!

 

Ps: there is a way to know all message code that can be send to DVBViewer?

  • 5 months later...
Posted

When this plugins will be done?

And may be another way lock some channels in DVBViewer exist?

 

Thank you.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...