Jump to content

Help with 2 OSD windows


alex.ba

Recommended Posts

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 by alex.ba
Link to comment

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

Link to comment

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

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...