Jump to content
Sign in to follow this  
mscrx

start a gui maximized

Recommended Posts

mscrx

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

Share this post


Link to post
Share on other sites
AlmarM

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.

Share this post


Link to post
Share on other sites
mscrx

thanks, but the first one equals my first one and the second one doesn't work at all.

Share this post


Link to post
Share on other sites
DaRam

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

Share this post


Link to post
Share on other sites
mscrx

muchos thankos

thats what I was looking for!

Share this post


Link to post
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
Sign in to follow this  

×