Jump to content

(silent) Com Activation Of Dvbviewer


UPollaehne

Recommended Posts

Hi,

 

if I use CreateObject to get COM access to DVBViewer (since GetObject failed due to no existing DVBViewer instance) the DVBViewer starts, shows its splash and opens its window.

It is no problem that DVBViewer opens a window although it would be nice to be able to tell DVBViewer that it should start without A/V and minimized.

The issue is that the opening window is in front of all other windows and gets the focus. So the user needs to switch back to the application that tried to access the COM object.

 

Is it possible to get around this behaviour?

Link to comment
not directly, if you start the DVBViewer with -nosplash the startup loader wont be displayed.

 

Christian

 

Thanks for the idea.

So to start DVBViewer nearly invisible I would use "-nosplash -m -c" or does the standby prevent using the COM objects?

Link to comment

Ok, I managed to start DVBViewer with "-c -m -nosplash" and COM works smoothly.

But now I want DVBViewer to restore it's window and tune to a channel.

Setting CurrentChannelNumber works. But how to restore the window?

In the list of TCMDType (which is not reacheable through the Typelib) there is the command CMD_MINIMIZE. But I do not find the CMD_RESTORE (or isn't it that obvious?).

Link to comment
Ok, I managed to start DVBViewer with "-c -m -nosplash" and COM works smoothly.

But now I want DVBViewer to restore it's window and tune to a channel.

Setting CurrentChannelNumber works. But how to restore the window?

In the list of TCMDType (which is not reacheable through the Typelib) there is the command CMD_MINIMIZE. But I do not find the CMD_RESTORE (or isn't it that obvious?).

So to answer my own question:

actions.ini contains all "commands" you can send via SendCommand(). There you will find WindowRestore and OnTop.

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