ILYA

ILYA

  • NA
  • 5
  • 0

Can I suppress screensaver with some sort of pop-up

Jun 5 2009 2:56 PM
I have a C# application that invokes another (command-line) tool via a system call. This tool has a bug which causes it to hang if, during its execution, the screensaver comes up on the machine. I know that it's possible to fiddle with screensaver setting programmatically, but I can't do it (client's requirements).

Hence my question: can I, before I invoke the tool, open some sort of pop-up window that will remain open for a predetermined amount of time , that would prevent ss from coming up. I have a good estimate of how long the tool needs to complete, so this would be the amount of time I would specify.

Since this call is placed hundreds of times during execution, the pop-up should not have any bottons on it to click. It should also not stop further processing until it closes. In other words, it should open, then control should pass to the system call and the pop-up should close on its own in parallel with tool's processing.

Can this be done? How?

Thanks much!