From: rc on

"Deepika" wrote:

> thanks for the reply.
> i checked the samples but my requirement is a bit different.
> I want to turn off the monitor and then irrespective of the inputs from
> keyboard and mouse, it should not turn ON. only after a prescribed delay, it
> should turned on.
>
You could hook keboard and mouse events and send
"SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM) 2);"
message again.
This way it will turn off as soon as there is any activity.

--rc