xxxzanka Posted February 23, 2009 Share Posted February 23, 2009 I try to modify an OSD skin. A question. It is possible to navigate with the right and left key in the HOME page or customizing the actions of the red, blue, ... keys? Thank you Quote Link to comment
Tjod Posted February 23, 2009 Share Posted February 23, 2009 It is possible to navigate with the right and left key in the HOME pageI try but find no solution without the Command.vbs. or customizing the actions of the red, blue, ... keys?Not in the OSD Skin. But there is a possibility to customizing the actions, via Command.vbs. First you need an Input commands with an ActionID above 20480 for each key you like to change. To generate them go Options > Input -> Add Group (changed actions) -> select the new Group > [for each key] Add (name) > and put in the second field in the Actioneditor each time a different number above 20480 > Add > OK -> Learn the key from the remote control for this new Input command. (you can export the new commands via Export > Custom Commands only if you like to share them together with your Command.vbs) If you use a ActionID above 20480 the DVBViewer will sent it to the \DVBViewer\Scripts\Command.vbs so we have to change the rest in this file. For the example Command.vbs I use the following ActionID's: OSD-red = ActionID 30500 OSD-green = ActionID 30501 OSD-yellow = ActionID 30502 OSD-blue = ActionID 30503 OSD-left = ActionID 30504 OSD-right = ActionID 30505 OSD-up = ActionID 30506 OSD-down = ActionID 30507 Command.vbs sub main(ActionID) Select Case ActionID Case 30500 'for OSD-red If osd.isVisible Then 'if the OSD is visible If windowmanager.isoverlay Then 'if ther is a dialog window send the folowing command: SendCommand(74) 'OSD-red ElseIf windowmanager.activeWindowID = 500 Then 'if the miniEPG is shown send the folowing command: SendCommand(34) 'record ElseIf windowmanager.activeWindowID = 0 Then 'if the OSD Menu SendCommand(8201) 'shown OSD-Timlin Else 'if ther is a other OSD window send the folowing command: SendCommand(74) 'OSD-red End If Else 'if ther is no OSD window send the folowing command: SendCommand(8201) 'shown OSD-Timlin End If Case 30501 'for OSD-green If osd.isVisible Then SendCommand(75) 'OSD-green Else SendCommand(2010) 'show the clok End If Case 30502 'for OSD-yellow If osd.isVisible Then SendCommand(76) 'OSD-yellow Else SendCommand(8199) 'OSD-Show Channels End If Case 30503 'for OSD-blue If osd.isVisible Then SendCommand(77) 'OSD-blue Else SendCommand(77) End If Case 30504 'for OSD-left If osd.isVisible Then 'if the OSD is visible SendCommand(2000) 'OSD-left ElseIf isMediaplayback Then 'if ther is no OSD window and the DVBViewer is playing a file send the folowing command: SendCommand(112) 'Previous Else 'if ther is no OSD window and the DVBViewer is not playing a file send the folowing command: SendCommand(2000) End If Case 30505 'for OSD-right If osd.isVisible Then 'if the OSD is visible SendCommand(2100) 'OSD-right ElseIf isMediaplayback Then SendCommand(113) 'Next Else 'if ther is no OSD window and the DVBViewer is not playing a file send the folowing command: SendCommand(2100) End If Case 30506 'for OSD-up If osd.isVisible Then 'if the OSD is visible SendCommand(78) 'OSD-up ElseIf isMediaplayback Then SendCommand(78) 'OSD-up ElseIf istimeshift Then 'if ther is no OSD window and the DVBViewer is not playing a file and timeshift is on send the folowing command: SendCommand(9) 'channel + Else SendCommand(78) End If Case 30507 'for OSD-down If osd.isVisible Then 'if the OSD is visible SendCommand(79) 'OSD-down ElseIf isMediaplayback Then SendCommand(79) 'OSD-down ElseIf istimeshift Then SendCommand(8) 'channel - Else SendCommand(79) End If Case Else osd.showInfoinTVpic "No action in the Command.vbs for the ActionID " & ActionID,1000 'show the text and the ActionID for 1000 ms End Select end sub You can find all ActionID's in the actions.ini in the DVBViewer folder. And the activeWindowID with DVBViewer Spy (Members Section > Sources) if you Open the OSD Page in the DVBViewer and look at OSD Window Event. Quote Link to comment
xxxzanka Posted February 24, 2009 Author Share Posted February 24, 2009 Wonderful! You have opened to me a lot of customization possibilities (there should be an english guide for this). I'll try it this evening. Can ask you another question? Some buttons on the default OSD windows have an ActionID others have an empty ActionID and the action seems to be connected to the Control_ID (for example the button "Eject disk"): some of them even with an empty "label text" (but the text is nevertheless reported correct on the OSD). There is a reference for this. Where I can find some explanation in english? I think DVBViewer is very powerful and highly customizable, but there is no guide on this. What a waste of time on "learning without a guide" instead of "doing". Cheers Quote Link to comment
Tjod Posted February 24, 2009 Share Posted February 24, 2009 there should be an english guide for thisThere is one "DVBViewer COM Interface" (Members Section > Sources) which contains although a lot more informations.Someone who knows VB scripts can do many things with the COM Interface an the InternalVBScripts. Some buttons on the default OSD windows have an ActionID others have an empty ActionID and the action seems to be connected to the Control_ID (for example the button "Eject disk"): some of them even with an empty "label text" (but the text is nevertheless reportd correct on the OSD).I thick that are hard code things, may be you can remove them but be careful some times this can cause in trouble. If you like to cage some thing use ActionIDs and scripts instead of them. You should use a OSD Skin base and change it site by site. To have texts which is Translatable you can put a number in the skin instead of the text and put the text in he language file in the [osd] section by the number or use the number from there if you like to use the seam text. I think DVBViewer is very powerful and highly customizable, but there is no guide on this. What a waste of time on "learning without a guide" instead of "doing".Writing and updating a real guide takes quit a lot of time. And until now know body hast taken the time to right on. If you have understand the most things you can start to right one if you like 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.