Heel2Heel Posted November 9, 2020 Posted November 9, 2020 gg.clearResults() gg.setRanges(gg.REGION_ANONYMOUS) gg.searchNumber('10;20;30 :: 9', gg.TYPE_DWORD) local c = gg.getResultsCount() if c == 3 then local r = gg.getResults(3) gg.toast(r[1].value .. ' ' .. r[2].value .. ' ' .. r[3].value) r[1].value = 0 r[2].value = 0 r[3].value = 0 r[1].freeze = true r[2].freeze = true r[3].freeze = true gg.addListItems(r) gg.sleep(100) r[1].freeze = false r[2].freeze = false r[3].freeze = false gg.addListItems(r) end I edit data r[1] = 0 but it doesn't affect. I need to freeze memory at lease 100ms. Is there any other workaround ?
Lover1500 Posted November 9, 2020 Posted November 9, 2020 43 minutes ago, Heel2Heel said: local c = gg.getResultsCount() gg.getResultCount(). not getResultsCount()
Heel2Heel Posted November 9, 2020 Author Posted November 9, 2020 r[3].value = 0 r[4].value = 0 r[5].value = 0 gg.setValues(r) -- require when values doesn't freeze gg.addListItems(r) -- require gg.setValues(r) if values doesn't freeze standalone gg.addListItems(r) work only with freeze values. Otherwise we need to gg.setValues(r) before add to gg.addListItems(r)
CmP Posted November 9, 2020 Posted November 9, 2020 11 hours ago, Lover1500 said: gg.getResultCount(). not getResultsCount() Function name is actually "gg.getResultsCount" according to the documentation: https://gameguardian.net/help/classgg.html#a1123e55c5eb365b425ccfe465c52c510 So there is no mistake there.
Lover1500 Posted November 9, 2020 Posted November 9, 2020 1 hour ago, CmP said: Function name is actually "gg.getResultsCount" according to the documentation: https://gameguardian.net/help/classgg.html#a1123e55c5eb365b425ccfe465c52c510 So there is no mistake there. Wow i use getResultCount only for a long time without checking specifically. Thank you sir!
Question
Heel2Heel
I edit data r[1] = 0 but it doesn't affect.
I need to freeze memory at lease 100ms. Is there any other workaround ?
4 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.