I didn't know why, but the values was not frozen. Only changed. If I manually freeze them, everything is OK, if not, the values change immediately.
However, I didn't despair and found a way out of the situation, I found what you missed in your example: I don't know how critical this is, but you didn't specify table ["freezeType"] = gg.FREEZE_NORMAL line and the most important thing is that you forgot about gg.addListItems (table) line.
But the main thing - the direction was set and eventually I was able to figure it out on my own. Thanks a lot!
function Flash()
gg.searchNumber("17~20", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
gg.refineAddress("6??????4", -1, gg.TYPE_DWORD, gg.SIGN_EQUAL, 0, -1)
while gg.getResultsCount() > 2 do
gg.processResume()
gg.sleep(2000)
gg.processPause()
gg.searchFuzzy("-4~-1", gg.SIGN_FUZZY_EQUAL, gg.TYPE_DWORD, 0, -1)
end
local table = gg.getResults(10)
for i = 1, #table do
table[i]["value"] = -1
table[i]["freeze"] = true
table[i]["freezeType"] = gg.FREEZE_NORMAL
end
gg.setValues(table)
gg.addListItems(table)
gg.toast('Done!')
gg.setVisible(true)
os.exit()
end