Process Management  
Author Message
Visual C# Novice





PostPosted: Visual C# General, Process Management Top

Can someone explain to me how to make a process automatically go Idle in code Or how to set a process' state to idle. Any help would be appreciated.


Visual C#5  
 
 
Brendan Grant





PostPosted: Visual C# General, Process Management Top

Traditionally with regards to a process idle means that it is not doing anything either because it is out of work or waiting for some external event to happen (key press, timer, etc) which means it is a prime candidate for suspension so that another process can have some time on the CPU... there generally isn’t a way to externally cause a process to be idle... and doing so within a program requires having it quit do any work but not terminating.

So that we might be able to better help you... what is exactly that you are trying to accomplish



 
 
Visual C# Novice





PostPosted: Visual C# General, Process Management Top

All I am trying to do is develope a program that makes the program "Aol Instant Messenger" or "AIM" become idle. Could you help me

 
 
Sean Hederman





PostPosted: Visual C# General, Process Management Top

You can't. Idle state is when a program is not doing anything, and you cannot control what another application does or does not do.

Why would you want to do this



 
 
Visual C# Novice





PostPosted: Visual C# General, Process Management Top

Its ok..i found a program to do it for me. thanks

 
 
Brendan Grant





PostPosted: Visual C# General, Process Management Top

Do you mean that you want AIM to report to other users that you are idle

If so... such a task would be very problematic as IM programs like that are simply watching the time since the last time you used the mouse or keyboard... not unlike the delay before your screensaver is displayed, it is in no way a measure of the idle state of a specific application.

Aside from digging into the (likely non-public) API for AIM and trying to forcibly trick it... you’d be far better off rolling your own client with something like Fluent.TOC.