Jump to content

Tuned Channel Number


Recommended Posts

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.

Link to comment
  • 2 weeks later...

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.

Link to comment
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?

Link to comment
  • 5 months later...

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...