Post by MrMajorThorburn » 29 Dec 2017, 10:26
my test snippet. My original had all the calculations in the GUI, New, line itself. I Would prefer them to be there instead of before.
; GUI New
X1 := 100
Y1 := 100
X2 := 400
Y2 := 400
GUIwidth := X2-X1
FileAppend, %GUIwidth%`n,*
GUIheight := Y2-Y1
FileAppend, %GUIheight%`n,*
dX := 242
dY := 98
GUIx := X1+dX
GUIy := Y1+dY
Options := "W" GUIwidth "H" GUIheight "X" GUIx "Y" GUIy
FileAppend, %Options%`n,*
; next line gives GUI syntax error
GUI, New, Options, "GUI Title"
; And this
GUI, New, % Options, "GUI Title"
; And this
GUI, New, % "W" GUIwidth "H" GUIheight "X" GUIx "Y" GUIy, "GUI Title"
my test snippet. My original had all the calculations in the GUI, New, line itself. I Would prefer them to be there instead of before.
; GUI New
X1 := 100
Y1 := 100
X2 := 400
Y2 := 400
GUIwidth := X2-X1
FileAppend, %GUIwidth%`n,*
GUIheight := Y2-Y1
FileAppend, %GUIheight%`n,*
dX := 242
dY := 98
GUIx := X1+dX
GUIy := Y1+dY
Options := "W" GUIwidth "H" GUIheight "X" GUIx "Y" GUIy
FileAppend, %Options%`n,*
; next line gives GUI syntax error
GUI, New, Options, "GUI Title"
; And this
GUI, New, % Options, "GUI Title"
; And this
GUI, New, % "W" GUIwidth "H" GUIheight "X" GUIx "Y" GUIy, "GUI Title"