jpm Posted June 7, 2004 Share Posted June 7, 2004 (edited) With the June 4th update the return value for GuiMsg() or GuiMsg(timeout) has changed.It is no more possible to check that the Gui Closed with only one condition because a button close action will return -3 as the cross red button action (in fact not really working to day but that the intention).The GuiMsg(0) has no change except the bug correction just mentioned.now to handle action on non closing action inside the loop we have to writeWhile 1 $msg = GuiMsg() Select Case $msg = -3 OR $msg = -1 ExitLoop Case $msg = $ncontrol MsgBox(0, "", "control clicked") ... ... EndSelect Wendbefore we can have writtenWhile GuiMsg()>0 Select Case $ncontrol = GuiRead() MsgBox(0, "", "Control clicked") ... ... EndSelect Wend ; post action on the gui ClosedThe problem is to decide to change the -4,-5,-6 corresponding to a positive value for the maximized/minimized/restoredI propose to change them to 4 5 6 and to have the first assign control to 7 instead of 2JUst confirm/object Edited June 7, 2004 by jpm Link to comment Share on other sites More sharing options...
Josbe Posted June 7, 2004 Share Posted June 7, 2004 Thanks 4 the info. AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta Link to comment Share on other sites More sharing options...
CyberSlug Posted June 8, 2004 Share Posted June 8, 2004 Remember to ajust the max index for the number of controls If we allow a total of 512 controls, the max index would need to be 519. Maybe we could make the first control 10; I like round numbers and it allows us room to expand again if we need to. Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! 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