[python-win32] Detecting user (in)activity and changing process prioritization?
Tim Roberts
timr at probo.com
Mon Oct 31 21:12:47 CET 2011
python at bdurham.com wrote:
> Is there a way to detect user (in)activity so that a program I have
> running in the background might use more system resources when a user
> isn't actively using their system and when user activity is detected,
> run in a more resource friendly mode?
>
> On a related note, is it possible to change the priority of a running
> process, or can the priority of a Windows process only be set when the
> process is launched?
Changing the priority is exactly the way to do this.
http://code.activestate.com/recipes/496767/
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the python-win32
mailing list