Code: Select all
gui, 1:add, button, gOpen, Open another window
gui, 1:show, x200 y200 w400 h400
return
Open:
gui, 2:add, text,, How position this window`nto the center of previous window?
gui, 2:show, w200 h200
return
Code: Select all
gui, 1:add, button, gOpen, Open another window
gui, 1:show, x200 y200 w400 h400
return
Open:
gui, 2:add, text,, How position this window`nto the center of previous window?
gui, 2:show, w200 h200
return
Code: Select all
x1 := 100
y1 := 100
gui, 1:add, button, gOpen, Open another window
gui, 1:show,% "x" x1 " y" y1 " w400 h400"
return
Open:
gui, 2:add, text,, How position this window`nto the center of previous window?
gui, 2:show,% "x" x1+100 " y" y1+100 " w200 h200"
return
Users browsing this forum: Bing [Bot], peter_ahk and 173 guests