bmn Posted April 30, 2007 Share Posted April 30, 2007 As I didn't find a solution in this forum (this might be because searching for "OSD" is not allowed ) for keys that can be used for different actions in OSD and in normal TV mode I came up with following script for "Command.vbs": sub main(Command) si = DVBViewer.propGetValue("#selecteditem") if (OSD.isVisible And si <> "") then Select Case Command Case 30000 ' OSD.showInfoinTVpic "OSD Up...",1000 SendCommand 78 Case 30001 ' OSD.showInfoinTVpic "OSD Down...",1000 SendCommand 79 Case 30010 ' OSD.showInfoinTVpic "OSD Up...",1000 SendCommand 78 Case 30011 ' OSD.showInfoinTVpic "OSD Down...",1000 SendCommand 79 Case 30020 ' OSD.showInfoinTVpic "OSD Right...",1000 SendCommand 2100 Case 30021 ' OSD.showInfoinTVpic "OSD Left...",1000 SendCommand 2000 End Select else Select Case Command Case 30000 ' OSD.showInfoinTVpic "Fav Up...",1000 SendCommand 21 Case 30001 ' OSD.showInfoinTVpic "Fav Down...",1000 SendCommand 20 Case 30010 ' OSD.showInfoinTVpic "Chan Up...",1000 SendCommand 9 Case 30011 ' OSD.showInfoinTVpic "Chan Down...",1000 SendCommand 8 Case 30020 ' OSD.showInfoinTVpic "Volume Up...",1000 SendCommand 26 Case 30021 ' OSD.showInfoinTVpic "Volume Down...",1000 SendCommand 27 End Select end if end sub Adding this section to "default.remote" I now have six new actions to configure (Fav/OSD+,Fav/OSD-,Chan/OSD+,Chan/OSD-,Vol+/OSD right,Vol-/OSD left): <Group Name="OSD dependent" ID="-1" System="0"> <Command Name="Favourite/OSD Up" Value="30000" ID="-1" System="0"> <Event Source="Keyboard">Up</Event> </Command> <Command Name="Favourite/OSD Down" Value="30001" ID="-1" System="0"> <Event Source="Keyboard">Down</Event> </Command> <Command Name="Channel/OSD Up" Value="30010" ID="-1" System="0"/> <Command Name="Channel/OSD Down" Value="30011" ID="-1" System="0"/> <Command Name="Volume Up/OSD right" Value="30020" ID="-1" System="0"> <Event Source="Keyboard">Right</Event> </Command> <Command Name="Volume Down/OSD left" Value="30021" ID="-1" System="0"> <Event Source="Keyboard">Left</Event> </Command> </Group> I just hacked this together and it seems to be working for me... perhaps there is someone with the same problem that might want to use this too. Or if the whole community thinks "this sucks!" or "why did he do this?": Is there another - more sophisticated - solution for my problem? Quote Link to comment
bmn Posted April 30, 2007 Author Share Posted April 30, 2007 Just found out the this script is not bug-free: * Answering "no" to the Exit dialog doesn't close the OSD but "#selecteditem" is empty afterwards (but my OSD detection relys on that) * Whenever the menu doesn't need "Left" and "Right" it seems that Volume Control gets triggered somehow - no idea why... Nevertheless it's better than before where OSD control was done with keys on the remote control that were not very intuitive. 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.