Gakusei
Joined: 09 Jan 2008 Posts: 15
|
Posted: Wed Jan 09, 2008 8:23 pm Post subject: Problem with using multiple InputBoxes |
|
|
I seem to be having trouble with using multiple input boxes. Don't know how to best explain this, so I'll just type out a scenario.
Say I'm using a text editor and I use a hotkey to have a series of InputBoxes ask me different questions that will in turn take what I've inputted and type out a note for me. The first InpuxBox usually pops up fine and all, but sometimes, after I answer the question on the first inputbox (or second or third sometimes, etc.), the next inputbox appears as the "active" window on the taskbar, but it appears underneath the text editor, so I have to alt+tab to bring it back up.
Is there a way to make sure that the InputBoxes always come up as the top window?
Here is a sort of example of the code I'm working with. I know it doesn't actually do anything, but you should get the idea, I think. I've even tried to use WinActivate after each InputBox line and it still doesn't work correctly at times:
| Code: | MENU_ONE=
(
Select:
1. Do stuff
2. Other stuff
3. Different stuff
)
MENU_TWO=
(
Select:
1. Do stuff
2. Other stuff
3. Different stuff
)
MENU_THREE=
(
Select:
1. Do stuff
2. Other stuff
3. Different stuff
)
WINDOW_ID=- Test Popup
InputBox, varOne, varOne %WINDOW_ID%, %MENU_ONE%,, 200, 280,,,,,1
InputBox, varTwo, varTwo %WINDOW_ID%, %MENU_TWO%,, 200, 280,,,,,1
InputBox, varThree, varThree %WINDOW_ID%, %MENU_THREE%,, 200, 280,,,,,1 |
|
|