 |
|
|
 |
|
 |
HI
I want to turn off the monitor when ever the user comes out of the client system from the server directly. The client monitor should be 'on' when ever the monitor on/off button is pressed. when the monitor is 'on' the desktop icons should be in disabled, and a login button has to appear for the user to click on it, when ever the user clicks on login then the time has to be calculated from then to the monitor off.
Can any one give the c# coding for this along with namespaces that are to be used.
|
| Sign In·View Thread·PermaLink | 1.50/5 (2 votes) |
|
|
|
 |
|
 |
HI every one:
Is there any way of turning on the monitor only by using mouse not using keyboard?
That is in power management I set monitor to turned off after 10 minutes but once I press a key in key board then my monitor is turned on ,I don’t want that to happen. The monitor should be turned on only if I use my mouse.
Is there anyway of doing it using a .bat code or some software????
|
| Sign In·View Thread·PermaLink | 1.50/5 (2 votes) |
|
|
|
 |
|
 |
On your code monitor will ON when move the mouse. But I want that monitor will not ON until I press Enter. How can I do it?
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
This process is OS dependent so it's not possible to wake up a monitor only by pressing the Enter key.
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
 |
Hi My name is Sandesh. I am writing a code to blank the screen. The requirement is that the screen should be kept blank until a specific event is fired by the remote software(A VNC viewer).
I have seen the UltraVNC (code is available on net)(Server code which is not compiling). They have used a hook to desktop procedure. When the desktop procedure receives a WM_POWER or WM_POWERBROADCAST event they have taken some action so that the screen remains blank. Also the keyboard and mouse event are locked so that the windows remains in the sleep mode and keyboard and mouse is locked. Currenty I am working on the project, so I felt like sharing the information I have. If you find the solution please help me out...
Waiting for your responce.
kingmax_007@yahoo.com
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
 |
Hi, My requirements are to keep the Monitor ON for the Lifetime of my App. So how can it be done?
Thanks...
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) { switch (message) { case WM_SYSCOMMAND:
switch (wParam) { case SC_SCREENSAVE: case SC_MONITORPOWER: return 0; }
break;
case WM_DESTROY:
PostQuitMessage(0); return 0; }
return DefWindowProc(hwnd, message, wParam, lParam); }
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
 |
Thanks for the Help. I'm coding in C# and am pretty new to it. If you can give me a C# equivalent then it would be easier for me. I'll try using DllImport("user32.dll") and then maybe use sendMessage function...
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
THis looks like a VB forum but I'm sure you guys will be able to help me out here.Please do read on. I made 2 batch files using poweroff3.0 by Jorgen Bosman and Wizmo By Steve Gibson for the following purpose
1.mute and turnoff the monitor -mute with wizmo, turnoff with poweroff 2.unmute and power on monitor - unmute with wizmo, turn on with poweroff
the code for the two batch files is
-----------------------batch file#1-------------------------- :: monoffmute.bat :: turn off monitor and mutes sound :: @ECHO OFF
C:\poweroff monitor_off C:\wizmo mute=1 -----------------------batch file #2------------------------- ::mononsoundon.bat :: turn on monitor and un-mutes sound :: @ECHO OFF
C:\poweroff monitor_on C:\wizmo mute=0
--------------------------------------------------- I then assigned 2 separate keys on my Pinnacle TV tuner (PCTV plus 110i) for running both above batch files. My problem is that the monitor turns off from the remote(and green light turns to amber on monitor), but turns back on because TV/VIDEO/MUSIC app is playing.any activity on the screen turns on the monitor.So the trick doesn't work as I envisaged.I want the monitor to stay turned off no matter what it is playing.It should turn on only when i press the button that i programmed to do so!
How do I achieve that?
Thanks a lot for your time Neelesh Bhagwat If you have a suggestion please post or mail me on bhagwatnp2@gmail.com
Neelesh "wannabe" HTPC enthusiast
|
| Sign In·View Thread·PermaLink | 2.33/5 (2 votes) |
|
|
|
 |
|
 |
hey guys im super new to all this coding stuff... and i thought it would be pretty neat to make a program where i press a button and monitor turns off... so #1 wat do i do with that source thing i downloaded...wen i double click the files they open in c++ and i have no idea wat to do with that code...#2 can i make this work in vb6? any help would be great ty!!!
|
| Sign In·View Thread·PermaLink | 3.00/5 (2 votes) |
|
|
|
 |
|
|
 |
|
 |
First, thanks for the code. Saved me some time looking up win api code 
But what is really the diffence between standby and off? I've tested both (I'm currently on my laptop) and can't see any diffence...
Regards, Oyvind Eriksen
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
|
 |
|
 |
hi all, i have impelemented by your method, it works fine, but not for below case:
while playing songs by mediaplayer (or other players), i manually switch monitor off by that funciton, it works till player change to next song.
anyway to keep it always blank unless only when i keypressed or mousemoved?
thanks
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
Is there any way to change monitor's (display)brightness and contrast by code? Thx for any help...
|
| Sign In·View Thread·PermaLink | 2.00/5 (2 votes) |
|
|
|
 |
|
 |
Did u got any updates on ur query, even im having the same need, help me out if u found a solution. thanks a ton!!
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
WmiSetBrightness Method of the WmiMonitorBrightnessMethods Class
The WmiSetBrightness method sets the display brightness of a computer monitor.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
Hmmm, obviously Raymond is right.
I wrote:
If you don't want to bother creating a window to send the message to, you can send the message to all top level windows (HWND_BROADCAST) or you can use GetDesktopWindow function sending the message to the desktop window. 
So it's preferable to say "always create a window and use its handle" or if you don't want to bother creating a window to send the message to then don't use this method.
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
 |
Great program! I like it.
And is there a similar solution to directly turn off a hard-disk?
I need such a small program for testing purposes!
Please help
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
 |
Hi,
Can you use this to detect when a screen goes into a different power mode? I would like to make an application which pauses itself when the machine is unattended for a period of time and was going to use the screen going into power-save mode. I found the SENS COM+ interface which notifies an application of a bunch of useful things. I had assumed that the screensaver notification it delivers would also tell me about the screen blanking if the energystar setting is selected, but it doesn't.
|
| Sign In·View Thread·PermaLink | 2.25/5 (4 votes) |
|
|
|
 |
|
|
 |
|
 |
I rated this as a 5 (to my surprise), because I like simple solutions to problems. I know finding the solution is not always easy, which you did. I hope some one adds this to a FAQs some where.
INTP Every thing is relative...
|
| Sign In·View Thread·PermaLink | 3.00/5 (3 votes) |
|
|
|
 |