kkbs4u Posted August 16, 2020 Share Posted August 16, 2020 gg.alert("Test Equipment","Enter") gg.getRanges()gg.setRanges(gg.REGION_C_ALLOC | gg.REGION_ANONYMOUS) gg.getResults(gg.getResultsCount())gg.clearResults()gg.setVisible(false)gg.searchNumber("164636;164636;0;0;164636;164636::21", gg.TYPE_DWORD)gg.refineNumber("164636;164636;0;0::17",gg.TYPE_DWORD, false, gg.SIGN_NOT_EQUAL) gg.getResults(gg.getResultsCount())local t = gg.getResults(2)for i, v in pairs(t) dot.flags = gg.TYPE_DWORDt.freeze = truet.freezetype = NORMALendgg.addListItems(t) gg.getResults(gg.getResultsCount())gg.clearResults()gg.setVisible(false)gg.searchNumber("164652;164652;0;0;164652;164652::21", gg.TYPE_DWORD)gg.refineNumber("164652;164652;0;0::17",gg.TYPE_DWORD, false, gg.SIGN_NOT_EQUAL) gg.getResults(gg.getResultsCount())local t = gg.getResults(4)for i, v in pairs(t) dot.flags = gg.TYPE_DWORDt.freeze = truet.freezetype = NORMALendgg.addListItems(t)gg.getListItems()gg.editAll("164569", gg.TYPE_DWORD) Sent from my HD1901 using Tapatalk Link to comment Share on other sites More sharing options...
SAGEPAPI Posted August 16, 2020 Share Posted August 16, 2020 Maybe try: gg.searchNumber('ur numbers', gg.TYPE_DWORD) local t = gg.getResults() gg.addListItems(t) for i, v in pairs(t) do t[i].value = 'number u want to change in' t[i].freeze = true end Idk if it'll work. Im not the best at lua Link to comment Share on other sites More sharing options...
CmP Posted August 16, 2020 Share Posted August 16, 2020 To change values of all elements in saved list it's enough to do the following: local items = gg.getListItems() for i, v in ipairs(items) do v.value = '123' -- new value end gg.setValues(items) Link to comment Share on other sites More sharing options...
Question
kkbs4u
gg.alert("Test Equipment","Enter")
gg.getRanges()
gg.setRanges(gg.REGION_C_ALLOC | gg.REGION_ANONYMOUS)
gg.getResults(gg.getResultsCount())
gg.clearResults()
gg.setVisible(false)
gg.searchNumber("164636;164636;0;0;164636;164636::21", gg.TYPE_DWORD)
gg.refineNumber("164636;164636;0;0::17",gg.TYPE_DWORD, false, gg.SIGN_NOT_EQUAL)
gg.getResults(gg.getResultsCount())
local t = gg.getResults(2)
for i, v in pairs(t) do
t.flags = gg.TYPE_DWORD
t.freeze = true
t.freezetype = NORMAL
end
gg.addListItems(t)
gg.getResults(gg.getResultsCount())
gg.clearResults()
gg.setVisible(false)
gg.searchNumber("164652;164652;0;0;164652;164652::21", gg.TYPE_DWORD)
gg.refineNumber("164652;164652;0;0::17",gg.TYPE_DWORD, false, gg.SIGN_NOT_EQUAL)
gg.getResults(gg.getResultsCount())
local t = gg.getResults(4)
for i, v in pairs(t) do
t.flags = gg.TYPE_DWORD
t.freeze = true
t.freezetype = NORMAL
end
gg.addListItems(t)
gg.getListItems()
gg.editAll("164569", gg.TYPE_DWORD)
Sent from my HD1901 using Tapatalk
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.