AutoHotkey-JSON icon indicating copy to clipboard operation
AutoHotkey-JSON copied to clipboard

fix error when float/double numbers are passed

Open RaptorX opened this issue 4 years ago • 0 comments

hlConfig := {showInfo : chrome.Jxon_True() ,contentColor : {r:0, g:100, b:0, a:0.5}} <-- float parameter for alpha channel

when sending information as shown above Jxon_Dump passes "0.5" instead of unquoted value. That's because float/doubles in autohotkey have a string buffer attached to them, and tricks your function in to not sending the parameter as is.

RaptorX avatar Oct 26 '20 17:10 RaptorX