ludocus Posted April 19, 2008 Share Posted April 19, 2008 (edited) 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 April 19, 2008 by ludocus Link to comment Share on other sites More sharing options...
monoceres Posted April 19, 2008 Share Posted April 19, 2008 Here's some Koda generated code that works with maximize button #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 More sharing options...
ludocus Posted April 19, 2008 Author Share Posted April 19, 2008 mhmmm... doesn't work here... Link to comment Share on other sites More sharing options...
ludocus Posted April 19, 2008 Author Share Posted April 19, 2008 nvm... I got it.. Bump Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now