styyxx Posted November 3, 2008 Posted November 3, 2008 Hello. I have been trying to find a way of sending multiple command to DVBViewer by pressing only one remote control key. I am using an MCE remote. More specifically, I would like to force DVBViewer to rebuild a graph after I press channel up or dn on the remote. The reason for this is that I am using a Mediaset official SmarDTV CAM on a floppyDVB-T card (the CAM is only guaranteed to be 100% compatible with a restricted set of TV and DVB-T boxes, although it can be purchased freely) and more often than not when I change channels it does not decode until I manually rebuild the graph. I know DVBV is supposed to rebuild the graph at each channel change if fast channel switching is not checked, but it doesn't seem enough. I have set a remote key to do this but I would like to automate the feature. I know I can do that with girder and similar programs but would like to avoid installing girder just for this. Any suggestions? Thanks S. Quote
Moses Posted November 3, 2008 Posted November 3, 2008 Just add your own action for that in Options->Input, on the left select "Add", then you are asked for a name, type in something linke "ch+ and rebuild", a new form appears, now you should search for the ch+ action, add it, and then the rebuild graph action, add that, too and voila... if you now learn a button for that new action, DVBViewer will (try to) do both commands. (There still is a chance that this is not working, because rebuild is carried out to close after the channel switch. But you should try that). Quote
Tjod Posted November 3, 2008 Posted November 3, 2008 Or add rebuild the graph in the channelchange.vbs (...\DVBViewer\Scripts\) sub main(aID) SendCommand(53) end sub Quote
styyxx Posted November 5, 2008 Author Posted November 5, 2008 Thanks for the replies. I have tried Moses suggestion and, although I managed to get the 2 commands quened, I have a rather odd behavior: DVBV changes the channel, then rebuilds the graph, and then goes back one channel. For example, i am on channel 5, press ch+ (with the modified command), goes to channel 6, rebuilds graph, triggers decoding, goes back to channel 5. If instead I modify the command chaining "stop graph" followed by "channelplus" or "channelminus" instead of the above solution, DVBV moves to the last or the first channel in the channel list. This is consistent, i.e. happens every time. I'll try Tjob solution, buy do you have any idea about why this happens? S. Quote
Moses Posted November 5, 2008 Posted November 5, 2008 That's what I thouhg could go wrong... rebuild graph seems to be triggered to fast, so DVBViewer wants to rebuild the last channel again. Maybe you can fix that, if you set the waittime for a channel switch to 0... it would be good to have a little delay in the command... but I guess that is beyond the scope of that feature. Stop graph won't really work, because stop graph sets the current channel to be channel 0. Quote
styyxx Posted November 5, 2008 Author Posted November 5, 2008 That's what I thouhg could go wrong... rebuild graph seems to be triggered to fast, so DVBViewer wants to rebuild the last channel again. Maybe you can fix that, if you set the waittime for a channel switch to 0... it would be good to have a little delay in the command... but I guess that is beyond the scope of that feature. Stop graph won't really work, because stop graph sets the current channel to be channel 0. Thanks, I'll try Anyway I tried Tjob's solution and seems to be working without problems. Still I sometimes have to manually rebuild the graph after a channel change but that is very limited and a definite improvement over the previous situation. S. Quote
pasl Posted January 12, 2009 Posted January 12, 2009 Or add rebuild the graph in the channelchange.vbs (...\DVBViewer\Scripts\) sub main(aID) OSD.ExecNewProcess "C:\SS2DiSEqC\SS2DiSEqC.exe","SAT " & ChannelManager(aID).root,False,False myKey = "HKEY_LOCAL_MACHINE\SOFTWARE\DVBRebuild\last" Set WshShell = CreateObject("WScript.Shell") lastTune = WshShell.RegRead(myKey) If lastTune = aID Then Else WshShell.RegWrite myKey,aID,"REG_DWORD" SendCommand(53) End If Set WshShell = Nothing end sub Quote
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.