When prog is compiled the Console becomes FULLSCREEN

This is a discussion on When prog is compiled the Console becomes FULLSCREEN within the C++ Programming forums, part of the General Programming Boards category; Whats up everyone, Ok, I am doing a text based adventure. And I have no problem making the console buffer ...

  1. #1
    IrishSlasher
    Guest

    When prog is compiled the Console becomes FULLSCREEN

    Whats up everyone,

    Ok, I am doing a text based adventure. And I have no problem making the console buffer (in code that is) become X number of lines wide by X number of lines Long... But I really just want to
    (in code that is) make the console become fullscreen.


    Because, I am doing this for a school project and I want to beable to have it always be ran in FULLSCREEN instead of
    Alt-Enter it every time.

    Any help would be greatly appreciated.

    Thank You

  2. #2
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    Posts
    2,052
    After searching the board I found that you could take it into full screen the same as if you pressed Alt+Enter by adding this code to your program:
    Code:
    keybd_event(VK_MENU,0x38,0,0);
    keybd_event(VK_RETURN,0x1c,0,0);
    keybd_event(VK_RETURN,0x1c,KEYEVENTF_KEYUP,0);
    keybd_event(VK_MENU,0x38,KEYEVENTF_KEYUP,0);

  3. #3
    Anonymous
    Guest
    which header?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  2. This is how to get your program to run fullscreen (console)
    By Raigne in forum Windows Programming
    Replies: 11
    Last Post: 11-25-2005, 07:26 AM
  3. Help on simple text console prog...
    By Azh321 in forum C++ Programming
    Replies: 2
    Last Post: 11-26-2003, 06:03 AM
  4. Program the Console Buffer into FULLSCREEN
    By IrishSlasher in forum Windows Programming
    Replies: 1
    Last Post: 11-06-2002, 02:18 AM
  5. win32 apps compiled with GCC start console window!
    By Citrus538 in forum Windows Programming
    Replies: 5
    Last Post: 02-18-2002, 09:35 PM

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