Amoronix Posted May 28, 2018 Share Posted May 28, 2018 is there a command to save values instead of editing them in script. gg.editAll the script does work when gg.saveAll is there. Link to comment Share on other sites More sharing options...
Amoronix Posted May 28, 2018 Author Share Posted May 28, 2018 https://gameguardian.net/help/classgg.html#a7efd4ac7766e72688cb4a84a3915721e gg.savelist didn't work either... Link to comment Share on other sites More sharing options...
Administrators Enyby Posted May 28, 2018 Administrators Share Posted May 28, 2018 You need study API help carefully. Link to comment Share on other sites More sharing options...
CmP Posted May 29, 2018 Share Posted May 29, 2018 Here is the function to add search results to the saved list Parameters (optional) maxCount Max count of saved results. Returns True or string with error. Code: function saveAll(maxCount) local functionResult if type(maxCount) ~= 'number' then maxCount = 0xFFFFFFFF end if gg.getResultCount() == 0 then functionResult = 'Nothing found. No values to save.' return functionResult end local searchResults = gg.getResults(maxCount) if type(searchResults) == 'string' then functionResult = 'An error occured in function gg.getResults().' .. 'Info: ' .. searchResults else functionResult = gg.addListItems(searchResults) end return functionResult end Example of usage: gg.searchNumber('123', gg.TYPE_DWORD) saveAll() Note: code of the function must be included before any call of the function in your script. Link to comment Share on other sites More sharing options...
TopGEOYT Posted February 8, 2019 Share Posted February 8, 2019 main = gg.getResults(1111)gg.addListItems(main) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.