function zoom()
gg.setRanges(gg.REGION_ANONYMOUS) -- example
gg.searchNumber('1;2;3;4', gg.TYPE_FLOAT)
gg.refineNumber("1;2;3;4", gg.TYPE_FLOAT)
revert = gg.getResults(4)
local r = gg.getResults(4)
r[1].value = '0'
r[2].value = '0'
r[3].value = '0'
r[4].value = '0'
gg.setValues(r)
gg.addListItems(r)
gg.toast('Zoom +')
gg.sleep(1000)
gg.clearResults()
end
end
gg.toast('To change zoom +, touch the gameguardian icon')
gg.sleep(100)
gg.setVisible(false)
while true do
if gg.isVisible() then
gg.setVisible(false)
zoom2()
end
end
end
function zoom2()
gg.setRanges(gg.REGION_ANONYMOUS) -- example
gg.searchNumber('1;2;3;4', gg.TYPE_FLOAT)
gg.refineNumber("1;2;3;4", gg.TYPE_FLOAT)
revert = gg.getResults(4)
local r = gg.getResults(4)
r[1].value = '0'
r[2].value = '0'
r[3].value = '0'
r[4].value = '0'
gg.setValues(r)
gg.addListItems(r)
gg.toast('To change zoom -, touch the gameguardian icon')
gg.sleep(1000)
gg.setVisible(false)
while true do
if gg.isVisible() then
gg.setVisible(false)
zoom()
end
end
end
-- I thought something like that, it's just to force the script to stop ... (?)