Jump to content
  • 0

group search prompt with different types


huoldz

Question

Posted

hi i have this script, i want to group search "prompt" with different types

the code i use:

p = gg.prompt({'dmg1','dmg2','dmg3','dmg'},
    {[1]='any-val',[2]='any-val',[3]='any-val',[4]='any-val'},
    {[1]='number',[2]='number',[3]='number',[4]='number'})
gg.setRanges(gg.REGION_ANONYMOUS)
for j = 1, 3 do
    gg.clearResults()
    gg.searchNumber(p[j]D..";"..p[j]F..":6", gg.SIGN_EQUAL, 0x90000000, 0x9f000000) >> i want to change this code 
    gg.searchAddress('8', 0xFFFFFFFF, gg.TYPE_FLOAT)
    if gg.getResultsCount() <= 2 then
        local table = gg.getResults(2)
        for i = 1, #table do
            table[i]["value"] = p[4]
            table[i]["freeze"] = true
        end
        gg.addListItems(table)
        gg.setValues(table)
end
end

example of the search i want to do with number

    gg.searchNumber("111D;111F:6", gg.SIGN_EQUAL, 0x90000000, 0x9f000000)
 

 

2 answers to this question

Recommended Posts

Posted
1 hour ago, huoldz said:

gg.searchNumber(p[j]D..";"..p[j]F..":6", gg.SIGN_EQUAL, 0x90000000, 0x9f000000) >> i want to change this code

Try changing it to the following:

gg.searchNumber(p[j] .. "D;" .. p[j] .. "F:6", gg.TYPE_AUTO, false, gg.SIGN_EQUAL, 0x90000000, 0x9f000000)

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.