Also the message box outside the function is also empty. Am I doing this the wrong way?
Code: Select all
space::
Var := test()
MsgBox, %Var%
Return
test(){
Obj := {}
WinID := WinExist("A")
MsgBox, %WinID%
Obj.PanelID := WinID
MsgBox, %Obj%
Return Obj
}