Retrieves a pointer to a variable.
OutputVar := GetVar(VarName , ResolveAlias)Function Example: varptr := GetVar(MyVar)
The name of variable in which to store pointer to desired variable.
The name of the variable.
1 / true to receive pointer to primary variable, FALSE / NULL / 0 to receive pointer to desired variable even if it is alias for another variable.
Struct, ahkgetvar, FindFunc, ahkFindFunc, ahkFindLabel
global _AHKVar := A_PtrSize ":{Int64 mContentsInt64,Double mContentsDouble,PTR mobject,PTR mVV},{char *mByteContents,LPTSTR mCharContents},{UINT_PTR mLength,_AHKVar *mAliasFor},{UINT_PTR mCapacity,UINT_PTR mBIV},BYTE mHowAllocated,mAttrib,mScope,mType,LPTSTR mName" global _AhkVarType := {0:"VAR_ALIAS",1:"VAR_NORMAL",2:"VAR_CLIPBOARD",3:"VAR_CLIPBOARDALL",4:"VAR_BUILTIN"} var:="AHK", v:=Struct(_AhkVar,GetVar(var)) MsgBox % v.mName "`n" _AhkVarType[v.mType] "`n" v.mCharContents v:=Struct(_AhkVar,GetVar("ClipboardAll")) MsgBox % v.mName "`n" _AhkVarType[v.mType]