Help - Search - Member List - Calendar
Full Version: Start media player with low priority
eMule Plus Forums > Development > Feature Requests
glaskrug
Hello,

sometimes when previewing incomplete files with VLC (incl. partfile plugin) something goes wrong and CPU usage jumps to 100%.

In this case it often takes pretty long to kill the process via taskmanager, so I set VLC prio manually to low(er) before I FF/rewind the video.

What I'd like to request is the possibility to start VLC already with low(er) prio, either as option or by default.

If due to whatever reason you don't want to implement that, would you please be so kind and tell me where/what in the code I have to change to always start VLC with low or lower priority.

Thanks a lot in advance!

greetings,
glaskrug
Aw3
You need to edit your registry to do that. eMule Plus is using standard Open OS command associated with the corresponding file extension.

Look at HKLM\Software\Classes madness... inside you will see something like "shell\Open\command". Try to add "start /belownormal" in front of it.
muleteer
For preview aren't we using the path specified in preferences> general> directories: video player for preview? Then we aren't using the app registered in the OS for that extension. unsure.gif
glaskrug
Thank you for the replys!

Hmm, actually I was hoping that there is a possibility that I can pass the /BELOWNORMAL switch directly with the shell/open command, as I don't want to open all media files with low prio.
Aw3
@muleteer
You might be right -- never used that thing. Then it can probably be extended the way I mentioned above.
glaskrug
Thank you for the replies!

Hmm, actually I was hoping that there is a possibility that I can pass the /BELOWNORMAL switch directly with the shell/open command, as I don't want to open all media files with low prio.

EDIT: something like this maybe?

CODE
        {
            CString strPlayerPath;
            int i = strPlayer.ReverseFind('\\');

            if (i >= 0)
                strPlayerPath = strPlayer.Left(i + 1);
    --->    strPlayerPath += _T(" /BELOWNORMAL");
            ShellExecute(NULL, _T("open"), strPlayer, strLine, strPlayerPath, SW_SHOWNORMAL);
        }
Lastwebpage
What if I use another player? Like GOM?
For me the options from the original emule would be enough:
http://emule-project.net/home/files/help/o...158452246_1.png
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.