Open Console in Full Screen

Just starting out? Need help? Post your questions and find answers here.
rcf-jr
New User
New User
Posts: 2
Joined: Sun May 25, 2025 9:50 pm

Open Console in Full Screen

Post by rcf-jr »

Looking to open the Console, in full screen, when starting a Console program. Can not locate this information on any of the supplied documentation.
boddhi
Enthusiast
Enthusiast
Posts: 524
Joined: Mon Nov 15, 2010 9:53 pm

Re: Open Console in Full Screen

Post by boddhi »

Spambot ?

First message, no presentation, no Hello , no please or thank you :?

viewtopic.php?t=42713
If my English syntax and lexicon are incorrect, please bear with Google translate and DeepL. They rarely agree with each other!
Except on this sentence...
rcf-jr
New User
New User
Posts: 2
Joined: Sun May 25, 2025 9:50 pm

Re: Open Console in Full Screen

Post by rcf-jr »

Got it figured out. PureBASIC has no such command, in ver 6.20, and I am using 64-bit Mode. Using my system's Windows API (windows 10) this works:

Import ""
GetConsoleWindow() ; No decoration needed
EndImport

OpenConsole()

hwnd = GetConsoleWindow()
ShowWindow_(hwnd, #SW_MAXIMIZE)

PrintN("Console window maximized.")
Input()

THANKS FOR YOR TIME
Olli
Addict
Addict
Posts: 1194
Joined: Wed May 27, 2020 12:26 pm

Re: Open Console in Full Screen

Post by Olli »

Hello !

Code: Select all

Import ""
GetConsoleWindow() ; No decoration needed
EndImport

OpenConsole()

hwnd = GetConsoleWindow()
ShowWindow_(hwnd, #SW_MAXIMIZE)

PrintN("Console window maximized.")
Input()
Did you see your source code between markups ?
Beautiful !

Thank you for the tip.
Post Reply