Click here, you know you want to

This is a discussion on Click here, you know you want to within the C++ Programming forums, part of the General Programming Boards category; Does anyone know how to shut down only the moniter in a dos program....

  1. #1
    Madmonky1
    Guest

    Question Click here, you know you want to

    Does anyone know how to shut down only the moniter in a dos program.

  2. #2
    Registered User Mario's Avatar
    Join Date
    May 2002
    Posts
    317
    Read the FAQ. The link is at the end of this page.

    As for your question, I don't know.
    Regards,
    Mario Figueiredo
    Using Borland C++ Builder 5

    Read the Tao of Programming
    This advise was brought to you by the Comitee for a Service Packless World

  3. #3
    Registered User geekfrog's Avatar
    Join Date
    Apr 2002
    Posts
    14
    If you mean turn off the monitor, there's no way for the cpu to do that, its only the button. You could try

    Code:
    char verify;
    cout<<"Would you like to turn off the monitor?";
    cin>>verify;
    if(verify=="y")
    {
    cout<<"press the off button on the monitor, please.";
    }....

  4. #4
    Registered User
    Join Date
    May 2002
    Posts
    317
    Actually it is a valid question, at least it used to be anyway. Their was a BIOS flag in DOS that you couold set to terminate the screen fefresh cycle, therefore although the monitor was still on, as in power is going to it, nothing was being put to the screen. Let me see if I can find it, its been awhile.

  5. #5
    Registered User
    Join Date
    May 2002
    Posts
    317
    Ah, I think this is it, here you go: (by the way sorry, its in assembly)

    Code:
    mov ax, 1201h
    mov bl, 36h ;enable/disable screen refresh
    int 10h ;all basic video calls
    Please excuse some of us who are too quick to answer a question with a misinformed response.

  6. #6
    i dont know Vicious's Avatar
    Join Date
    May 2002
    Posts
    1,200
    wow.... thats wicked... lol can you cut the PC off?
    What is C++?

  7. #7
    Registered User
    Join Date
    Sep 2001
    Posts
    305
    Originally posted by Vicious
    wow.... thats wicked... lol can you cut the PC off?
    of course you can ... you can reboot te computer also

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Button click out of WM_COMMAND
    By Sober in forum Windows Programming
    Replies: 8
    Last Post: 05-03-2007, 10:07 PM
  2. Replies: 2
    Last Post: 03-23-2006, 07:08 AM
  3. mouse click coords and moving a rect
    By techrolla in forum Windows Programming
    Replies: 1
    Last Post: 03-07-2004, 09:49 PM
  4. Click button on dialog box to open window.
    By ooosawaddee3 in forum Windows Programming
    Replies: 1
    Last Post: 11-29-2002, 08:53 AM
  5. newbie help
    By jcw96 in forum C++ Programming
    Replies: 10
    Last Post: 09-15-2002, 09:10 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21