Zazza Posted December 8, 2007 Posted December 8, 2007 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: 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. Quote
Lars_MQ Posted December 8, 2007 Posted December 8, 2007 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. Quote
Zazza Posted December 8, 2007 Author Posted December 8, 2007 (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 December 8, 2007 by Zazza Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.