Rxhacker Posted October 3, 2020 Share Posted October 3, 2020 Hi, I want to know that if i search gg.clearResults() gg.setRanges(gg.REGION_ANONYMOUS) gg.searchNumber("6D;6.0;2.5::10", gg.TYPE_FLOAT) t1 = gg.getResults(1000) gg.editAll("150D;10;2.5", gg.TYPE_FLOAT) gg.editAll("150;10F;2.5F", gg.TYPE_DWORD) gg.clearResults() Then is their any way to again call and edit t1 in any other function. Please remember i need to edit it as a group. If not tell me how can i store group values and edit them whenever i want. Thank you in advance. Link to comment Share on other sites More sharing options...
MonkeySAN Posted October 3, 2020 Share Posted October 3, 2020 gg.addListItems(t1)-- put all the results in the save list. gg.loadResults(gg.getListItems())-- call the saved list as results for editing. hope that help. Link to comment Share on other sites More sharing options...
Rxhacker Posted October 3, 2020 Author Share Posted October 3, 2020 2 minutes ago, MonkeySAN said: gg.addListItems(t1)-- put all the results in the save list. gg.loadResults(gg.getListItems())-- call the saved list as results for editing. hope that help. Thanks but, Lets us concider a function mn1 () which search for antina hack . And another function mn2 () which search for high jump. Now how can i get both value antina and high jump for later use. Like condider function mn3 () asks for antina value to change it. And function mn4 () asks for high jump value to change it. But here it seems like gg will store them at same place together. How to get exact value or save them differently and ask them differently. Link to comment Share on other sites More sharing options...
RizPrasety Posted October 3, 2020 Share Posted October 3, 2020 1 hour ago, Rxhacker said: Thanks but, Lets us concider a function mn1 () which search for antina hack . And another function mn2 () which search for high jump. Now how can i get both value antina and high jump for later use. Like condider function mn3 () asks for antina value to change it. And function mn4 () asks for high jump value to change it. But here it seems like gg will store them at same place together. How to get exact value or save them differently and ask them differently. I think the answer is to store the data in config file Link to comment Share on other sites More sharing options...
Rxhacker Posted October 4, 2020 Author Share Posted October 4, 2020 10 hours ago, RizPrasety said: I think the answer is to store the data in config file Can you give example Link to comment Share on other sites More sharing options...
Lover1500 Posted October 4, 2020 Share Posted October 4, 2020 27 minutes ago, Rxhacker said: Can you give example local configFile = gg.getFile()..'.cfg' local data = loadfile(configFile) if data ~= nil then data = data() end local input = gg.prompt({'Please input something'}, data) if input == nil then os.exit() end gg.saveVariable(input, configFile) Its like that. Link is Examples of Lua scripts (#9v7rwwt2) Link to comment Share on other sites More sharing options...
Rxhacker Posted October 5, 2020 Author Share Posted October 5, 2020 On 10/4/2020 at 10:24 AM, Lover1500 said: local configFile = gg.getFile()..'.cfg' local data = loadfile(configFile) if data ~= nil then data = data() end local input = gg.prompt({'Please input something'}, data) if input == nil then os.exit() end gg.saveVariable(input, configFile) Its like that. Link is Examples of Lua scripts (#9v7rwwt2) How to save different search results in different config file and ask differently. Link to comment Share on other sites More sharing options...
Lover1500 Posted October 5, 2020 Share Posted October 5, 2020 2 hours ago, Rxhacker said: How to save different search results in different config file and ask differently. You know for key. On 10/3/2020 at 4:25 PM, Rxhacker said: Then is their any way to again call and edit t1 in any other function. Please remember i need to edit it as a group. If not tell me how can i store group values and edit them whenever i want. If its like that then On 10/3/2020 at 9:52 PM, MonkeySAN said: gg.addListItems(t1)-- put all the results in the save list. gg.loadResults(gg.getListItems())-- call the saved list as results for editing. hope that help. Answer is already in monkeySan. Set names. Link to comment Share on other sites More sharing options...
Rxhacker Posted October 5, 2020 Author Share Posted October 5, 2020 3 hours ago, Lover1500 said: You know for key. If its like that then Answer is already in monkeySan. Set names. Like this call for value??? gg.loadResults(gg.getListItems(t1)) gg.loadResults(gg.getListItems(t2)) gg.loadResults(gg.getListItems(3)) Link to comment Share on other sites More sharing options...
Question
Rxhacker
Hi,
I want to know that if i search
gg.clearResults()
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber("6D;6.0;2.5::10", gg.TYPE_FLOAT)
t1 = gg.getResults(1000)
gg.editAll("150D;10;2.5", gg.TYPE_FLOAT)
gg.editAll("150;10F;2.5F", gg.TYPE_DWORD)
gg.clearResults()
Then is their any way to again call and edit t1 in any other function. Please remember i need to edit it as a group.
If not tell me how can i store group values and edit them whenever i want.
Thank you in advance.
Link to comment
Share on other sites
8 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.