Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/22/2021 in all areas

  1. Incorrect search string for type "Dword". "searchNumber" function returns string in case of failure so it is possible to check whether function completed successfully: local ret = gg.searchNumber("1.000", gg.TYPE_DWORD) if type(ret) == "string" then print("Error: " .. ret) else print("Success") end
    1 point
  2. local g = gg local ls = {'test1','test2'} local val = {"10;0;0;1::","20;0;0;2::"} local c = g.multiChoice(ls,{false,false},'prova') if c==nil then print('Canceled') os.exit() end -- table to store search results local results = {} for i=1, #ls do if c[i] then s = val[i] g.searchNumber(s,4) -- ['getResults'] = function (maxCount, skip, addressMin, addressMax, valueMin, valueMax, type, fractional, pointer) end, -- gg.getResults(int maxCount [, int skip = 0 [, long addressMin = nil [, long addressMax = nil [, string valueMin = nil [, string valueMax = nil [, int type = nil [, string fractional = nil [, int pointer = nil]]]]]]]]) -> table || string with error results[i] = g.getResults(999, nil, nil, nil, nil, nil, nil, nil, nil) g.clearResults() print(s) print(results) end end -- So the first results list is stored in the table -- results in index 1 ( results[1] ). -- the second search results list is also stored in the results table -- but index 2 -- for editing you will use the code bellow for k, v in ipairs (results[1]) do v.value = '45' -- The value you want to change to v.flags = gg.TYPE_DWORD -- value type v.freeze = false -- true if you want to freeze v.freezeType = gg.FREEZE_NORMAL -- remove both freeze and freeze type if you dont want to freeze the value end g.setValues(results[1])
    1 point
  3. If there are results in results list, "searchNumber" function performs refine search. For new search don't forget to call "clearResults" function before calling "searchNumber" function. Second search happens instantly after the first one and only results from the first search are used to search in, that's why you get 0 results after both searches.
    1 point
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.