switch console to Full Screen Mode

Share your advanced PureBasic knowledge/code with the community.
User avatar
Rings
Moderator
Moderator
Posts: 1435
Joined: Sat Apr 26, 2003 1:11 am

switch console to Full Screen Mode

Post by Rings »

windows only

Code: Select all

OpenConsole()
dwOldMode=0
Result=GetConsoleDisplayMode_(@dwOldMode) 
hOut=GetStdHandle_(#STD_OUTPUT_HANDLE)
switch=1
SetConsoleDisplayMode_(hOut, switch, @dwOldMode)
ConsoleColor(14,3)
ConsoleLocate(10,10)
PrintN("FULL SCREENMODE !")
Delay(5000)
switch=0
SetConsoleDisplayMode_(hOut, switch0, @dwOldMode)
ClearConsole()
ConsoleColor(10,2)
ConsoleLocate(10,10)
PrintN("Windowed MODE !")
Delay(5000)
CloseConsole()
End
SPAMINATOR NR.1
chris_b
Enthusiast
Enthusiast
Posts: 103
Joined: Sun Apr 27, 2003 1:54 am

Post by chris_b »

nice, but is there a way to specify the fullscreen mode - equivalent to typing "mode con: lines=25" at the command prompt?

(In XP it defaults to 50 lines)
Post Reply