Was doing a wife-beta and she accidentally clicked the GUI behind the InputBox. This caused the GUI to come to the top and the InputBox to disappear, which confused her greatly. Worse, this is a Windows Mobile script using AHKCE, so switching to the InputBox via the task bar button isn't an option.
In the docs, there's nothing about making an InputBox modal.
Any suggestions on how to accomplish this?

Modal InputBox?
Started by
Donny Bahama
, Apr 19 2009 07:07 PM
3 replies to this topic
#1
-
Posted 19 April 2009 - 07:07 PM

Create your own InputBox using ...
Gui, +AlwaysOnTop Gui, Add, Edit, ... Gui, Add, Button, ... Gui, Show,, Test Return
#2
-
Posted 19 April 2009 - 08:42 PM

It may help to disable the gui while a dialogue is open.
If you want to get into some advanced stuff, you can use SetParent() via dllcall. Making the inputbox window a child of the main gui window should keep it on top.
If you want to get into some advanced stuff, you can use SetParent() via dllcall. Making the inputbox window a child of the main gui window should keep it on top.
#3
-
Posted 19 April 2009 - 09:20 PM

easy, just add "Gui, +OwnDialogs" before input box
Gui, Add, Button, , TryMe Gui, Show, w800 h600 Return ButtonTryMe: { Gui, +OwnDialogs ;Add This line just before input box InputBox, var, , This Input Box is in modal mode MsgBox, U'd Enter `"%var%`" } Return
#4
-
Posted 20 April 2009 - 01:24 AM
