For the past 72 hours I have searched all over the internet, looked at source code, and did some guess 'n check code for making a console application FULL SCREEN. Since there was limited code on the internet (All that I found didn't work for me) I thought I should post the code here for people to see.
Manually to get a console application full screen you would either edit the properties or ALT+ENTER. Someone on the internet had the right idea to simulate those keys. Unfortunately the code (In C++) didn't work for me after I translated it to pascal. It most likely had to of been the fact that he was using C++. (Windows.h has same function names as Windows.pas) The following code is very similar to the translated C++ that I found. The only difference is the scan code. After many trials and errors I blindly shot and hit the target, the scan code is NEEDED.
keybd_event(virtual-key code, scan code, flag, extraI);
Arg 1. virtual-key code : find all key code [link=http://delphi.about.com/od/objectpascalide/l/blvkc.htm]here[/link]
Arg 2. scan code : Unfortunately I cannot find on the internet a website with the exact scan code that I used. I'm not sure if different computers will have the same scan code, so, this code may not work on your machine. Try changing the scan code.
Arg 3. flag : KEYEVENTF_EXTENDEDKEY (To my understanding... it repeats the key over and over) KEYEVENTF_KEYUP (Key is no longer pressed) 0 (Key is being pressed).
Arg 4. extraI : Must be a 32bit variable... I have no clue. Don't need it. Leave as 0.
//VK_MENU is virtual-key code of ALT.
//56 is scan code of ALT.
//VK_RETURN is virtual-key code of ENTER.
//28 is scan code of ENTER.
//Both Alt and Enter are being 'pressed.'
//Alt is up.
//Enter is up.
Readln;//Wait for enter.