Hi,
They are a lot of method but they are bug and other special "lag" that depend with version of windows and style of your OS.
I am noob (and french ^^) but I had searched a good method during a long time...
go to helpfile and check OnMessage list
for example:
OnMessage(0x232, "WM_EXITSIZEMOVE")
I think it's the beter method, because you can burn your CPU if you use other OnMessage (no redraw during move), but depend of what you need and what you want to show... check OnMessage list, you can find your happy^^
Other things you don't need to use +alwaysontop, if your GUI is always in pack you can use it as a "child" (with gui, 2:+owner1) , it's better because you can use your script like a normal apps ( always on top is crap when you parse an other windows to it) and only apps in your task bar ( so don't use toolwindows or other things )...
check gui owner also, it's like pyramid poperty...
advice: with this method, just for a beter skin, your GUI2 can have the same size than main gui, and main gui it just a "ghost" with a system bar (the system bar of main gui is essential during minimize windows coz they are some problem for minimize all child gui with vista (they duplicat it in taskbar dunno why, post message or not ) )
sorry again for my english I hope you understand... here a small example script than speack beter than me
Code:
OnMessage(0x232, "WM_EXITSIZEMOVE")
WM_EXITSIZEMOVE() {
IfWinExist, MAIN GUI
{
WinGetPos, X, Y, , , A ; you need to calcul position for other gui
Y2:=Y+50
X2:=X+50
Y3:=Y+150
X3:=X+100
gui, 2:show, x%X2% y%Y2%
; if option=showgui3 ; for example if it's pop up gui; else gui, 3:destroy ;becarfull it's a function some varaible must be in global mode I think
gui, 3:show, x%X3% y%Y3%
}
}
gui, 1:+alwaysontop
gui, 1:add, text,,GUI 1
gui, 1:show, x50 y50 w200 h200, MAIN GUI
gui, 2:+owner1 -Caption +Border
gui, 2:add, text,,GUI2
gui, 2:show, x100 y100 w50 h50
gui, 3:+owner1 -Caption +Border
gui, 3:add, text,,GUI3
gui, 3:show, x150 y200 w50 h50
other thing: You can use transparent background for gui2,3,X you will show background of main gui, but depend of option of gui because you can view desktop (so you can creat " real layers " )
problem: when you click gui 2 or 3, main gui is not "active", it's a very small problem but you can solve it with a settimer ( not a loop ), but depend of OS style and what you need ^^
if you have other question...