Ultimist Posted May 28, 2010 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.
nitekram Posted May 28, 2010 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 2 AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit Docs SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language Programming Tips Excel Changes ControlHover.UDF GDI_Plus Draw_On_Screen GDI Basics GDI_More_Basics GDI Rotate GDI Graph GDI CheckExistingItems GDI Trajectory Replace $ghGDIPDll with $__g_hGDIPDll DLL 101? Array via Object GDI Swimlane GDI Plus French 101 Site GDI Examples UEZ GDI Basic Clock GDI Detection Ternary operator
Yoriz Posted May 28, 2010 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.
Ultimist Posted May 28, 2010 Author Posted May 28, 2010 Thanks Yoriz. That's exactly what I was looking for.
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