Jump to content

start a gui maximized


Recommended Posts

hi all,

i wanted to have a gui which starts as maximized window.

first try:

#include <GUIConstants.au3>
$GUI = GUICreate("",@DesktopWidth,@DesktopHeight,0,0,$WS_MAXIMIZEBOX)
GUISetState()
While 1
    $msg = GUIGetMsg()
    
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend

opens a gui but movable and overlapping the taskbar

second try:

#include <GUIConstants.au3>
$GUI = GUICreate("",100,100,0,0,$WS_MAXIMIZEBOX)
GUISetState(@SW_MAXIMIZE)
While 1
    $msg = GUIGetMsg()
    
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend

will not even show the gui

any idea? I just want the gui to start in fullscreen (maximized) and not hiding the taskbar under it)

thanks for help

Link to comment
Share on other sites

Try:

$GUI = GUICreate("", @DesktopWidth, @DesktopHeight, 0, 0, BitOR("", $WS_MAXIMIZEBOX))

; Or else

$GUI = GUICreate("", @DesktopWidth, @DesktopHeight, 0, 0, BitOR($WS_MAXIMIZEBOX))

-AlmarM-

Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Link to comment
Share on other sites

Try:

#include <GUIConstants.au3>
#Include <WindowsConstants.au3>

$GUI = GUICreate("",100,100,0,0,$WS_MAXIMIZEBOX)
GUISetState(@SW_SHOW)
WinSetState($GUI, "", @SW_MAXIMIZE)
While 1
    $msg = GUIGetMsg()
    
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...