alex.ba Posted August 8, 2010 Share Posted August 8, 2010 (edited) Hi all, a question regarding a special case with 2 OSD Windows. When starting the fav Editor and then changing the Name of a new FAV Folder you have the case that 2 OSD windows are overlapping: The Problem is that I have almost all keys defined in the Command.VBS. For example I use a special RIGHT key definition 'OSD - Right Case 30002 if osd.isVisible Then if windowmanager.activeWindowID = 500 Then SendCommand(103) elseif windowmanager.activeWindowID = 2901 Then SendCommand(103) else SendCommand(2100) end if elseif isdvd then if Datamanager.Value("#currentplaytime") = "00:00:00" then SendCommand(2100) end if else SendCommand(103) end if In General this works very smooth but in this case (because of the 2 overlapping Windows) the command is executed 2 times. The result is that every key is recognized 2 times. Have you got an idea how to handle this? Thanks in advance and Regards, Alex Edited August 9, 2010 by alex.ba Quote Link to comment
Tjod Posted August 8, 2010 Share Posted August 8, 2010 You should add: If windowmanager.isoverlay Then SendCommand(2100) Quote Link to comment
alex.ba Posted August 8, 2010 Author Share Posted August 8, 2010 Hi Tjod, thanks a lot for your help. I put it in but it doesn't change. My new code is: Case 30004 if osd.isVisible Then If windowmanager.isoverlay Then SendCommand(2100) elseif windowmanager.activeWindowID = 500 Then SendCommand(102) elseif windowmanager.activeWindowID = 2901 Then SendCommand(102) else SendCommand(2000) end if elseif isdvd then if Datamanager.Value("#currentplaytime") = "00:00:00" then SendCommand(2000) end if else SendCommand(102) end if Where do I have to put this? Thanks in advance andf Regads, Alex Quote Link to comment
Tjod Posted August 8, 2010 Share Posted August 8, 2010 If this don't work i have no idea. Quote Link to comment
alex.ba Posted August 9, 2010 Author Share Posted August 9, 2010 Hi all, thanks again for your answer. If you directly set the keys (without the command script) then it works but with the command every key that is send is recognized two times. I do not have any further case when two OSD Skins are overlapping but my understanding is that you have the same problem then too. If you have any further idea please let me know. Thanks and Regards, Alex 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.