Ultimist 0 Posted May 28, 2010 I'm working on a small app with a simple GUI. When a user presses a certain button on the GUI, an InputBox window opens up... but it seems I can still access the main GUI window and press the button again while the InputBox is still open. This causes the problem of another InputBox opening after I close the first one. How can I block access to the main window while any other window or input box is opened? Thanks. Share this post Link to post Share on other sites
nitekram 68 Posted May 28, 2010 I'm working on a small app with a simple GUI. When a user presses a certain button on the GUI, an InputBox window opens up... but it seems I can still access the main GUI window and press the button again while the InputBox is still open. This causes the problem of another InputBox opening after I close the first one. How can I block access to the main window while any other window or input box is opened?Thanks.I think if you create your own input gui and then make it a child you might get what you want. 2¢All by me:"Sometimes you have to go back to where you started, to get to where you want to go." "Everybody catches up with everyone, eventually" "As you teach others, you are really teaching yourself." From my dad "Do not worry about yesterday, as the only thing that you can control is tomorrow." WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit Docs SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDFLearning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language Programming TipsExcel ChangesControlHover.UDFGDI_PlusDraw_On_ScreenGDI BasicsGDI_More_BasicsGDI RotateGDI GraphGDI CheckExistingItemsGDI TrajectoryReplace $ghGDIPDll with $__g_hGDIPDllDLL 101?Array via ObjectGDI SwimlaneGDI Plus French 101 SiteGDI Examples UEZGDI Basic ClockGDI DetectionTernary operator Share this post Link to post Share on other sites
Yoriz 6 Posted May 28, 2010 Like this. #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 183, 111, -1, -1) $Button1 = GUICtrlCreateButton("Input", 54, 43, 75, 25) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 InputBox("Input", "Your input", "", "", 100, 100, Default, Default, 0, $Form1) EndSwitch WEnd GDIPlusDispose - A modified version of GDIPlus that auto disposes of its own objects before shutdown of the Dll using the same function Syntax as the original.EzMySql UDF - Use MySql Databases with autoit with syntax similar to SQLite UDF. Share this post Link to post Share on other sites
Ultimist 0 Posted May 28, 2010 Thanks Yoriz. That's exactly what I was looking for. Share this post Link to post Share on other sites