Jump to content

can' t get my gui to maximize


Recommended Posts

I have the following script:

#include<GUIConstants.au3>
$oIE = ObjCreate("Shell.Explorer.2")
    $runescape_gui = GUICreate("Runescape Client RsH", 800, 600,$WS_MAXIMIZEBOX)
    $brows = GUICtrlCreateObj($oIE, 0, 0, 800, 600)
    GUICtrlSetResizing($brows, $GUI_DOCKAUTO)
    GUISetState()
    $oIE.Navigate('www.runescape.com')

    While 1
        $a = GUIGetMsg()
        Switch $a
            Case $GUI_EVENT_CLOSE
                GUIDelete($runescape_gui)
                ExitLoop
                
        EndSwitch
    WEnd

but when I run it.

The window comes up minimized and I can't maximize it.. Al I want do is have the maximize button (top-right) to work....

Edited by ludocus
Link to comment
Share on other sites

Here's some Koda generated code that works with maximize button :D

#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 625, 445, 193, 125, BitOR($WS_MAXIMIZEBOX,$WS_MINIMIZEBOX,$WS_SYSMENU,$WS_CAPTION,$WS_POPUP,$WS_POPUPWINDOW,$WS_GROUP,$WS_TABSTOP,$WS_BORDER,$WS_CLIPSIBLINGS))
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd

Broken link? PM me and I'll send you the file!

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...