Hi, I need help with the prompt command, I want to know if it's possible to replace sleep function in the code below with some other method in which I can choose when to execute the refine function
local fi = gg.prompt({"Enter Clip Size"},
{[1] ="0"},
{[1] ="number"})
gg.searchNumber(fi[1],gg.TYPE_DWORD)
gg.getResults(20000)
gg.sleep(3000)
local gi = gg.prompt({"Shoot And Enter Clip Size"},
{[1] ="0"},
{[1] ="number"})
gg.refineNumber(gi[1], gg.TYPE_DWORD)
gg.getResults(100)
gg.sleep(5000)
local gti = gg.prompt({"Shoot And Enter Clip Size last time"},
{[1] ="0"},
{[1] ="number"})
gg.refineNumber(gti[1], gg.TYPE_DWORD)
local t = gg.getResults(3)
for i, v in ipairs(t) do
t[i].freeze = true
end
gg.addListItems(t)
gg.setRanges(gg.REGION_CODE_APP,gg.REGION_C_ALLOC, gg.REGION_C_DATA,gg.REGION_ANONYMOUS)
One thing that just came to my mind is using functions, sleep and a loop and asking to either sleep or use refine in prompt, please give ideas and new methods to use.
I used setranges function in the beginning but it was only searching in anonymous region,why??