Jump to content

Erweiterte Lautstärkeregelung (+Fokus auf DVB Viewer)


Recommended Posts

Habe es geschafft, dass ich die Lautstärke von Windows und DVBViewer ändern kann.

Ausserdem wird das DVBViewer Fenster in den Vordergrund geholt!

 

Im DVBViewer Ordner unter Scripts gibt es die Command.vbs

 

dort folgendes ergänzen, oder überschreiben:

 

sub main(ActionID)
Set WshShell = CreateObject("WScript.Shell")
WshShell.AppActivate("DVBViewer")
  Select Case ActionID 

   Case 50301
	 if osd.isVisible Then
		 WshShell.SendKeys(chr(175))
	else
		 SendCommand(26)
	end if


   Case 50302
	 if osd.isVisible Then
		 WshShell.SendKeys(chr(174))
	else
		 SendCommand(27)
	end if

   Case Else
   'Bei allen anderen ActionIDs
	   osd.showInfoinTVpic "No action in the Command.vbs for the ActionID " & ActionID,1000
	   'Zeige die Text Information No action in the Command.vbs for the ActionID (ActionID)
	   'für 1000 Millisekunden im DVBViewer an.
  End Select
end sub

 

Vll hilfts dem einen oder anderen

Link to comment

die command.vbs wird ja nur aufgerufen, wenn eine Action ausgeführt wird. Dies geschieht normalerweise, wenn eine Taste gedrückt wird. Dazu wiederum muss der Dlvbviewer schon das aktive Fenster sein. Wozu sollte man also in der command.vbs den DVBViewer aktivieren?

Link to comment

Ja das stimmt. Bei mir ist das TechnoTrend-Plugin aktiv und das sendet auch, wenn DVBViewer im Hintergrund ist.

Falls Popups in den Vordergrund kommen, sollte das DVBV-Fenster wieder in den Vordergrund kommen.

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...