demandnothing Posted September 22, 2009 Share Posted September 22, 2009 i know i ask a lot of questions, and i've probably gotten on a few peoples nerves by now.. i apologize, but i am trying to learn this so i can help others as well as myself, with what i know. i have a GUI with options on it.. check boxes, input boxes, and buttons.. one of the buttons minimizes the GUI so the program can run efficiently.. and one of the buttons minimizes the GUI so another GUI can appear and you can select from its options.. when i close out of the second GUI or restore the minimized GUI the buttons no longer work.. click all you want its not doing anything.. how do i fix this? Link to comment Share on other sites More sharing options...
Yashied Posted September 22, 2009 Share Posted September 22, 2009 And where your GUI (Code)? My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
demandnothing Posted September 22, 2009 Author Share Posted September 22, 2009 (edited) its really a long code and kind of hard to shift through.. there's a ton of cases and things, i thought i could get some suggestions on how to prevent my problem.. like using specific GUI set states other than @SW_MINIMIZE and @SW_RESTORE after the GUI is restored i cant even change the checkboxes.. i have it set up to where if one is checked the rest are not, but that cancels itself out after clicking on one of the buttons, so all the check boxes can be enabled Edited September 22, 2009 by demandnothing Link to comment Share on other sites More sharing options...
Yashied Posted September 22, 2009 Share Posted September 22, 2009 Most likely you have an mistakes in your code, but try WinSetState().Another way: _WinAPI_CloseWindow() and _WinAPI_OpenIcon() from WinAPIEx.au3. My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
demandnothing Posted September 23, 2009 Author Share Posted September 23, 2009 thanks.. i tried the winsetstate but still having the same problems, and im not sure if closewindow and openicon are what im lookin for are they? Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 23, 2009 Moderators Share Posted September 23, 2009 If you're not willing to provide a very detailed description or at least post a replication script ( since yours contains either personal information you don't want public or it's too long ), then you need not even bother posting a question. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Zedna Posted September 23, 2009 Share Posted September 23, 2009 (edited) If you're not willing to provide a very detailed description or at least post a replication script ( since yours contains either personal information you don't want public or it's too long ), then you need not even bother posting a question.I agree.Anyway here is general tip for OP:Look at http://www.autoitscript.com/autoit3/docs/guiref/GUIRef_MessageLoopMode.htmespecially at "Advanced GUIGetMsg and Multiple Windows" section. Edited September 23, 2009 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search 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