Jump to content

sendcommand with two instances of dvbviewer


Recommended Posts

I use two instances of DVBViewer in the same pc in two separate directory and name the
executable as DVBViewer.exe and dvbviewer1.exe all work fine but when i use the script
for example:

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

only the first instance receive the command, how can i tell to the script to use the second

instance ?

 

 

Link to comment

I think this is not possible using COM because the COM server could only be registered once (by the first instance started).

 

But you can try to execute DVBViewer.exe and dvbviewer1.exe with the command line switch -x followed by an action id.

Link to comment

I use two instances of DVBViewer in the same pc in two separate directory and name the

executable as DVBViewer.exe and dvbviewer1.exe all work fine but when i use the script

for example:

 

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

DVBViewer.sendcommand "16383"

 

only the first instance receive the command, how can i tell to the script to use the second

 

instance ?

 

Syntax:

WScript.GetObject (strPathName [,strProgID] [,strSubPrefix])
strPathName  Receives the location of the file that will be loaded into the associated application.
strProgID    If the specified file can be handled by more than one application, this parameter accepts the ProgID of the particular application that you wish to use to load the file.
strSubPrefix If non-empty, the CreateObject method will bind the events of the newly loaded object to event handlers beginning with the string passed to this parameter.

Just an idea:

 

Make an association for filtetype "*.dvbv1" with DVBViewer1. Create a dummy file "dummy.dvb1".

set DVBViewer = getobject("dummy.dvbv1")
Edited by erwin
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...