Comskip Support Forum

Comskip is a free commercial detector, browse the forum for more information
It is currently Fri Aug 17, 2018 6:33 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Prevent PC from sleeping
PostPosted: Fri Oct 18, 2013 4:39 pm 
Offline

Joined: Fri Oct 18, 2013 4:25 pm
Posts: 1
Just switching from ShowAnalyzer to ComSkip, and I notice that ComSkip doesn't appear to block sleep on the HTPC while it's analyzing. Have you considered simply calling SetThreadExecutionState (http://msdn.microsoft.com/en-us/windows/desktop/aa373208(v=vs.85).aspx) to inform Windows you'd like the system to remain up? System would be a good choice; away mode is a bit debateable....

Of course, it appears to be enough faster than ShowAnalyzer that this may turn out not to be an issue. If it's set up to start detection while the show is recording, and then can continue detection while I'm watching it (and keep ahead of me) that's not necessarily a problem.


Top
 Profile  
Reply with quote  
PostPosted: Sat Oct 19, 2013 1:37 pm 
Offline
Site Admin

Joined: Sun Aug 21, 2005 3:49 pm
Posts: 3194
Good proposal

Will try to add to next build


Top
 Profile  
Reply with quote  
PostPosted: Tue Nov 19, 2013 4:24 pm 
Offline

Joined: Wed Dec 07, 2011 12:37 am
Posts: 130
Harder than it sounds to accomplish! At least for those using Win Vista/7/8. For XP users sleep/hibernation can be blocked.
For others if the winAPI have received a sleep/hibernation command no application can block it from be carried through.

The link even says so:
Quote:
The SetThreadExecutionState function cannot be used to prevent the user from putting the computer to sleep. Applications should respect that the user expects a certain behavior when they close the lid on their laptop or press the power button.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group