Jump to content

Having a problem with @SW_MAXIMIZE


Recommended Posts

Hi All,

I am having a small problem with the @SW_MAXIMIZE setting.

If I use this switch in either the 'Run' command, or with the 'WinSetState' command, the window is maximized correctly, but if I then click (manually, haven't tried it in a script) the minimize button, it does nothing. I can use the button to switch between maximized and not maximized, but I can't minimize the window when it's maximized.

This problem also existed for me in AutiIt 2.64 if I used the 'WinRestore' command and the restored state was a maximized window.

Is this a bug in AutoIt, or something else?

Link to comment
Share on other sites

Hi All,

I am having a small problem with the @SW_MAXIMIZE setting.

If I use this switch in either the 'Run' command, or with the 'WinSetState' command, the window is maximized correctly, but if I then click (manually, haven't tried it in a script) the minimize button, it does nothing. I can use the button to switch between maximized and not maximized, but I can't minimize the window when it's maximized.

This problem also existed for me in AutiIt 2.64 if I used the 'WinRestore' command and the restored state was a maximized window.

Is this a bug in AutoIt, or something else?

<{POST_SNAPBACK}>

I don't know what is doing your script but the following work perfect
#include <GUIConstants.au3>
GUICreate("test",-1,-1,-1,-1,BitOr($WS_MINIMIZEBOX,$WS_MAXIMIZEBOX))
GuiSetState()

WinSetState("test","",@SW_MAXIMIZE)
Do
    $msg=GuiGetMsg()
until $msg=$GUI_EVENT_CLOSE
:)
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...