From: Vikash on 4 Jan 2010 07:18 I am turning off the monitor by calling SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, (WPARAM)SC_MONITORPOWER, 2). It works fine but the monitor gets turned on whenever there is a mouse movement or a keystroke. Request you to suggest a way to prevent this. Thanks, Vikash.
From: Leslie Milburn on 4 Jan 2010 10:20 "Vikash" <vikashrungta76(a)gmail.com> wrote in message news:11d17800-a3db-4bfb-b7c8-167bd7ef258e(a)k19g2000yqc.googlegroups.com... >I am turning off the monitor by calling > SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, (WPARAM)SC_MONITORPOWER, > 2). > > It works fine but the monitor gets turned on whenever there is a mouse > movement or a keystroke. Request you to suggest a way to prevent this. > > Thanks, > Vikash. Umm, may I ask why ?
From: Vikash on 4 Jan 2010 10:44 On Jan 4, 8:20 pm, "Leslie Milburn" <CD...(a)NOSPAM.bigpond.com> wrote: > "Vikash" <vikashrungt...(a)gmail.com> wrote in message > > news:11d17800-a3db-4bfb-b7c8-167bd7ef258e(a)k19g2000yqc.googlegroups.com... > > >I am turning off the monitor by calling > > SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, (WPARAM)SC_MONITORPOWER, > > 2). > > > It works fine but the monitor gets turned on whenever there is a mouse > > movement or a keystroke. Request you to suggest a way to prevent this. > > > Thanks, > > Vikash. > > Umm, may I ask why ? Hi Leslie, I am writing an application which would enable a user to use a machine remotely. When a machine is being used remotely, its local monitor should be turned off. Thanks, Vikash.
|
Pages: 1 Prev: Load + Display JPG Tutorial Next: Suppressing tab key in edit box |