Jump to content

Solution: multiple instances in task manager when closing...


Zazza

Recommended Posts

Posted

For those having multiple instances in task manager when DVBViewer is closed (due to third party plugins), here it is a possible solution:

 

Create a script and name it like you want (ie: exit.vbs):

 

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
   & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colProcessList = objWMIService.ExecQuery _
   ("SELECT * FROM Win32_Process WHERE Name = 'DVBViewer.exe'")
For Each objProcess in colProcessList
   objProcess.Terminate()
Next

Save it in the DVBViewer root folder.

 

Create another script and name it Command.vbs. Place it in the Scripts directory in your Data Folder.

 

sub main(command)
if command = 21000 then osd.execnewprocess "c:\windows\system32\wscript.exe", "D:\DVBViewer\exit.vbs",false,false
end sub

(Change the path of exit.vbs accordingly to your location).

 

Now, start DVBViewer and go in Settings/Option/Input.

Add a command, name it as you like.

Type 21000 in the command number like this:

 

actionca8.th.jpg

Push ADD and hit OK.

Associate a keystroke to the new command (LEARN button).

 

Done. Now try to invoke the command. DVBViewer should quit and every instances (if present) too.

 

Let me know if it works for you, too.

 

Bye.

Posted

Most likely the stupiest idea i have seen for a long time here. I guess you do also chop off your arm if you have a splinter in your finger?

 

This approach will cause very serious problems that's for sure.

 

Better:

Remove the guilty plugins or get working versions.

Posted (edited)

Well, don't really want to start a flame especially since I'm a really dumb and stupid noob. To me, you could delete this and the first post in this topic.

I've posted that only because I've read many people having this kind of problem. Never told it was an orthodox solution as I know that there's no support to third party plugins (because of that we are talking about).

The solution is :

Better:

Remove the guilty plugins or get working versions.

Thanks. This is obvious solution but also the 99% of replies posted to this problem and, honestly, it's not so smarter than my 1%. An idea, bad and stupid but different.

Edited by Zazza

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