func P($Var)
ConsoleWrite(X($Var) & " = [" & $Var & "]" & @CRLF)
endfunc
;Here, X represents an unknown built-in function or UDF
for examples:
local $sString=""
$sString=string(12345679*9)
P($sString)
After the function P runs, the following results are expected:
$sString = [111111111]
So the problem is, how to automatically transform the variable name in quotation marks with different function parameters.
$a
AutoIt lacks a VarName function, similar to FuncName.
You can dump the content of a variable but you don't have a way to recover its name:
Local $struct = DllStructCreate("char[3];handle[3];uint[35];byte[128];wchar[190000]; double[3];int64[3];char[3];float;double;byte;byte;short;ushort;int;uint;char")
DllStructSetData($struct, 1, 'sos')
DllStructSetData($struct, 2, Ptr(123456789))
DllStructSetData($struct, 3, 8, 1)
DllStructSetData($struct, 3, 0x87654321, 2