Page 1 of 1
Open Console in Full Screen
Posted: Sun May 25, 2025 9:58 pm
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.
Re: Open Console in Full Screen
Posted: Sun May 25, 2025 10:41 pm
by boddhi
Spambot ?
First message, no presentation, no Hello , no please or thank you
viewtopic.php?t=42713
Re: Open Console in Full Screen
Posted: Mon May 26, 2025 12:43 am
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
Re: Open Console in Full Screen
Posted: Tue May 27, 2025 6:23 pm
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.