function Generate(F)
gg.setRanges(gg.REGION_ANONYMOUS | gg.REGION_C_ALLOC)
gg.clearResults()
gg.startFuzzy(gg.TYPE_DOUBLE)
gg.searchFuzzy()
gg.toast('Выбросьте один предмет и нажмите на значок GG')
gg.setVisible(false)
while true do
if gg.isVisible() then
gg.setVisible(false)
Generate2(F)
break
end
end
end
function Generate2(F)
gg.searchFuzzy('0', gg.SIGN_FUZZY_NOT_EQUAL)
gg.refineNumber('0.06;2.0:512', gg.TYPE_DOUBLE)
if gg.getResultsCount() ~= 2 then
gg.toast('Ошибка, повторите попытку')
gg.clearResults()
else
gg.getResults(2)
Generate3(F)
end
end
P.S. toast in russian, it needs user to drop item
[added 0 minutes later]
And Generate3(F) shall be this script that i asked in description
[added 1 minute later]
I tried this, but this is not working properly.
function Generate3(F)
result = gg.getResults(2)
address1 = result[1].address
minus1 = 0x10
address2 = address1 - minus1
gg.gotoAddress(address2)