gg.setRanges(gg.REGION_ANONYMOUS)
key = gg.prompt({[1]='A value', [2]='B value', [3]='absolute value'}, {[1]='0', [2]='0', [3]='5'})
gg.searchNumber(key[1].. ";" .. key[2] .. "::" .. key[3], gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0)
gg.refineNumber(key[1], gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0)
revert = gg.getResults(100)
local t = gg.getResults(100)
for i, v in ipairs(t) do
if v.flags == gg.TYPE_DWORD then
v.value = v.value + "375"
end
end
gg.setValues(t)
t = nil
local t = gg.getResults(1000)
gg.addListItems(t)
t = nil
The use of single quote or double quote indicate that element inside the quotations is a string. When using a prompt, you are actually saving the user input as a table, and to call it, you need to use variable[index]. In this case, your variable is "key" and the index is 1, 2 and 3.