Have a GUI question which includes some requirements.
The code below shows two GUI's in one script. I'm trying to get the 2nd GUI (toolbarwindow) to always be on top but still allow interaction with the main GUI (parentwindow). Which is what the script below actually does. Here's the catch, if a different window becomes active, along with the usual main window (parentwindow) becoming inactive, the 2nd GUI (toolbarwindow) must also become inactive. The code below does not do that.
Currently that code operates that If you activate another window, only the main window (parentwindow) is inactive, the toolbarwindow stays on top of the active window. Which I don't want. Please HALP!!
EDIT: I would also like to avoid timer
I also have tried #IfWinActive but of course that is only for hotkeys, which won't help me here.
Code:
Code: Select all
Gui, Toolbar: +LastFound +AlwaysOnTop +ToolWindow
Gui, Toolbar: Add, Button, x25 y48, Toolbar`r`nButton
Gui, Add, Button, x25 y48, Parent`r`nButton
Gui, Show, w300 h300, ParentWindow
Gui, Toolbar: Show, w100 h100, ToolbarWindow