Best Answer
It uses a similar concept to store its variable with the data in chunks to overcome the limitation.
This is what i had in mind i had to cutoff part of the data because it is a hex file >6Kb
You create a file(or to the clipboard) with chunks <19000 characters then paste them into your code and recombine them when you need the var.
Rseding91 used some clever code that i failed to understand but i could do it like this.
reading a test file into var
cutting it in 1000 char parts
pasting it in the code again
recombining it
it is a picture and i could get the picture from the recombined code so it works.
FileRead, t,test.hex
var := RegExReplace(t,".{1,1000}","$0`n")
loop,parse,var,`n
fileappend,a%A_Index%=%A_LoopField%`n ,data.txt
msgbox ok
;this is the pasted code from step 1 data.txt
a1=89504E470D0A1A0A0000000D494844520000001F00000028080600000006D1212 ;this data is cutoff!!
a2=70F87E3C3C45A190B9D9D9E5E4E4D84AC4425B61CA577DFE67C25FC057FD6CF97
a3=202BC885E49DE4C3E433E41BE421F25B0A9D624071A4F853E22852CA6A4A19E51
a4=B6A8B6B86549B2E45AA659EEB6BC6E855A3959A558555A5DB346AD9DAD25D6BBA
a5=4C0D4CDD9B3A9E169A76206D323D3ABD31839291907142AA214D93B667EA67E66
a6=B95C6BB9EE7ABDB57B66F7E91B9E37CEDDF4BD79F116FFD6D59E393DDDBDF37A6
a7=B89FCCB1F0D306AF033E721F4A9D5B0730684352812F0EA23A496ED9BA2CC88CE9
a8=485A23E93549C5B90CC86559B7A4110385E3E592066380B1D5AF485AEF9EC70547D
loop 8
{
q:=a%A_Index%
var_new .=q
}