novis Posted June 7, 2009 Share Posted June 7, 2009 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. Quote Link to comment
novis Posted June 17, 2009 Author Share Posted June 17, 2009 (edited) Is there a getchannel function in the plugins API? Edited June 17, 2009 by novis Quote Link to comment
Lars_MQ Posted June 17, 2009 Share Posted June 17, 2009 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. Quote Link to comment
novis Posted June 24, 2009 Author Share Posted June 24, 2009 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? Quote Link to comment
peshault Posted December 1, 2009 Share Posted December 1, 2009 When this plugins will be done? And may be another way lock some channels in DVBViewer exist? Thank you. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.