Code: Select all
DPf:=A_ScreenDPI/96
gui, add, button, w80 h30 vMyButton gOpen, Button
gui, show, w200 h200
return
Open:
WinGetPos, x, y,,, A
GuiControlGet, Pos, Pos, MyButton
Xpos:=PosX + x
Ypos:=PosY + PosH + y
gui, 2:-caption
gui, 2:margin, 0, 0
gui, 2:add, edit, w100 h100
gui, 2:show, x%Xpos% y%Ypos% w100 h100
return