Hi in a103 this simple piece of code would work
Code: Select all
#SingleInstance force
SetWorkingDir A_ScriptDir ; Ensures a consistent starting directory.
Gui := GuiCreate()
r_a := Gui.Add("Radio", "x3 y3 vr_a Checked", "A")
r_b := Gui.Add("Radio", "vr_b", "B")
Gui.Show()
NamedCtrlContents := Gui.Submit(false)
msgbox NamedCtrlContents["r_a"]
(also PosSizeObj := Gui.Pos - here trying PosSizeObj["X"] raises the same error)