 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Donny Bahama
Joined: 30 Dec 2006 Posts: 132 Location: Margaritaville (a state of mind somewhere between Inebriation and San Diego), CA
|
Posted: Sun Apr 19, 2009 7:07 pm Post subject: Modal InputBox? |
|
|
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? |
|
| Back to top |
|
 |
Guest
|
Posted: Sun Apr 19, 2009 8:42 pm Post subject: |
|
|
Create your own InputBox using ...
| Code: | Gui, +AlwaysOnTop
Gui, Add, Edit, ...
Gui, Add, Button, ...
Gui, Show,, Test
Return |
|
|
| Back to top |
|
 |
[VxE]
Joined: 07 Oct 2006 Posts: 3254 Location: Simi Valley, CA
|
Posted: Sun Apr 19, 2009 9:20 pm Post subject: |
|
|
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. _________________ Ternary (a ? b : c) guide TSV Table Manipulation Library
Post code inside [code][/code] tags! |
|
| Back to top |
|
 |
yunhen3350
Joined: 17 Apr 2009 Posts: 20
|
Posted: Mon Apr 20, 2009 1:24 am Post subject: |
|
|
easy, just add "Gui, +OwnDialogs" before input box
| Code: | 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 |
|
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|