However, since you are using primarlly AHK GUIs, its better to use
DockA (and much smoother):
Code:
#SingleInstance force
SetWinDelay -1
SetBatchLines, -1
Gui, 3:+LastFound -Caption +ToolWindow
Gui, 3:Color, red
Gui, 3:Add, Text, s9 cGreen w700 , background layer
Gui, 3:Show, w200 h200,Win_Background
Dock_HostID := WinExist(Win_Background)
Gui, 4:+LastFound -Caption +ToolWindow +border
Gui, 4:Color, black
Gui, 4:Add, Text, s9 cGreen w700 , text layer text layer text layer text layer`n text layer text layer text layer text layer`n text layer text layer text layer text layer`n text layer text layer text layer text layer`n
Gui, 4:Show,w120 h60, Win_Text
w3 := WinExist()
;###### Tweaking
Gui, 3:+LastFound
WinSet, Transparent, 245 , Win_Background
WinSet, Region, 0-0 W200 h200 R20-20, Win_Background
Gui, 4:+LastFound
WinSet, TransColor, black 100, Win_Text
;###### Docking
DockA(Dock_HostID, w3, "x(0,0,20) y(0,0,20) t") ;w(1,40) h(1,40) t
;###### Move window without caption
OnMessage(0x201, "WM_LBUTTONDOWN")
WM_LBUTTONDOWN()
{
IfWinNotActive, Win_Text
PostMessage, 0xA1, 2
;IfWinNotActive, Win_Background
;PostMessage, 0xA1, 2
}
return
#include DockA.ahk
~esc::exitapp