photonbuddy Posted July 1, 2005 Share Posted July 1, 2005 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 More sharing options...
jpm Posted July 1, 2005 Share Posted July 1, 2005 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 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