something like this perhaps?
Code:
#noenv
#singleinstance, force
settitlematchmode, 2
guiname = MyGui
webbrowser = Mozilla
gosub FollowBrowser
Gosub opengui
return
GuiClose:
ExitApp
OpenGui:
e = +E0x101
Gui, color, 0xF0a030
Gui, +Resize
Gui, Add, Text,,this is my gui
Gui, Add, Text,, it follows the browser
; show the gui window
Gui, Show, Title, %GuiName%
WinSet, AlwaysOnTop, On, %GuiName%
SetTimer, FollowBrowser, 1000
Return
FollowBrowser:
guilocx = 0
guilocy = 0
IfWinExist, %WebBrowser%
{ WinGetPos, winlocx, winlocy, wwidth, wheight, %WebBrowser%
guilocx = %winlocx%
guilocy = %winlocy%
}
WinMove, %GuiName%,, %guilocx%, %guilocy%
WinSet, Top,, %GuiName%
WinSet, AlwaysOnTop, Off, %WebBrowser%
Return