How do I start the console maximized? It defaults to a smaller default size and I cannot figure out how to get around this.
thanks
thanks
LOCAL sTitle AS STRING,hConsole AS LONG (or dword depending on how findwindow and showwindow are declared) sTitle ="AG" CONSOLE NAME sTitle CONSOLE SCREEN 26,80 hConsole = FindWindow(BYVAL %NULL, BYVAL STRPTR(sTitle)) ' use findwindow to get hwnd ShowWindow hConsole, %SW_MAXIMIZE ' set to maximized
local hConsole as dword hConsole = CONSHNDL ShowWindow hConsole, %SW_MAXIMIZE ' set to maximized
#CONSOLE INITIALIZE MAXIMIZE|MINIMIZE|X,Y [, HIDDEN]
#COMPILE EXE #INCLUDE "win32api.inc" FUNCTION PBMAIN() AS LONG LOCAL sTitle AS STRING,hConsole AS LONG '(or dword depending on how findwindow and showwindow are declared) sTitle ="AG" CONSOLE NAME sTitle CONSOLE SCREEN 26,80 hConsole = FindWindow(BYVAL %NULL, BYVAL STRPTR(sTitle)) ' use findwindow to get hwnd ShowWindow hConsole, %SW_MAXIMIZE ' set to maximized LOCATE 5,5 PRINT "HELLO" WAITKEY$ END FUNCTION
[FONT=Courier New]Console subkey Default value entries ------------------------------------------ Command Prompt FontFamily=0x30 (All data types FontSize=0xc0008 are REG_DWORD) FullScreen=0x1 PopupColors=0xf5 QuickEdit=0 ScreenBufferSize=0x190050 ScreenColors=0x9f WindowsPosition=0x150004 WindowSize=0x190050 Configuration CommandRecallBufferSize=50 (All data types FillAttr=0x07 are REG_SZ) ScreenBufferColumns=80 ScreenBufferRows=25 WindowColumns=80 WindowRows=25 Introducing FullScreen=0x1 Windows NT Microsoft QBASIC FullScreen0x1 [/FONT]
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Comment