Jump to content

Is ApplyConfig ignored in 3.9.1?


digidigi

Recommended Posts

Posted

Hi I try to execute this scrip as an external application,

But I can't execute "ApplyConfig"

 

set DVBViewer = getobject(,"DVBViewerServer.DVBViewer")

DVBViewer.sendcommand "16383" ' Stop graph

DVBViewer.SetSetUpValue "MPEG", "H264codec", "CyberLink H.264/AVC Decoder (PDVD7.x)"

DVBViewer.ApplyConfig() 'This line is somewhat ignored..

 

If I restart DVBViewer, the changes is loaded. so it must work until the last line...

 

Any suggestions? Please?

 

/Digi

Posted

To answer my self,

 

This is how I "Workaround" for now

 

 

Dim ChannelNum

set DVBViewer = getobject(,"DVBViewerServer.DVBViewer")

ChannelNum = DVBViewer.CurrentChannelNr

 

DVBViewer.sendcommand "16383" 'look in your Actions.ini

DVBViewer.SetSetUpValue "MPEG", "H264codec", "CyberLink H.264/AVC Decoder (PDVD7.x)"

DVBViewer.ApplyConfig()

DVBViewer.Quit

 

Set DVBViewer = Nothing

 

dim objShell

 

set objShell = CreateObject("Shell.Application")

 

objShell.ShellExecute "C:\DVBViewer\DVBViewer.exe", "-c" & ChannelNum, "", "", 1

 

set objShell = nothing

  • 2 weeks later...
Posted

Hello,

 

i have the same problem:

 

I try to hide every item around the tv screen (toolbar, window bar ..):

 

Me.MyManager.SetSetupValue("General", "HideMenu", "1")

Me.MyManager.SetSetupValue("General", "Statusbar", "0")

Me.MyManager.SetSetupValue("General", "Toolbar", "0")

Me.MyManager.ApplyConfig()

 

Changes are applied in the setup file but when DVBViewer closes, old values are restored.

 

So is there another way to hide those items ?

 

thanks !

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