Jump to content
  • 0

Help to Copy the result what i search and put it on the new Search.


vn00698090
 Share

Question

Hi everybody,

I have a problem here: When I search for a certain value, it comes up with a result, and I want to get that result to continue the search, it's like this

gg.clearResults()

gg.toast('Lets go!!!')

gg.searchNumber("3;-12;30;1000000~3000000::33", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0)

gg.refineNumber("1000000~3000000", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1,0)

revert = gg.getResults(1000, nil, nil, nil, nil, nil, nil, nil, nil)

gg.toast('Got it')

gg.clearResults()

what i want is to take the value 1000000~3000000 (it will show 1 result) and put it in the search

Ex: 1000000~3000000 the result is -132312 , i want copy it to the new search like that

gg.searchNumber("3;3~8;1;2;5;-132312::33", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0)

gg.refineNumber("3~8", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1,0)

revert = gg.getResults(1000, nil, nil, nil, nil, nil, nil, nil, nil)
    gg.editAll("1000", gg.TYPE_DWORD)
gg.toast('Got 10000')

gg.toast('Got it')

gg.clearResults()

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
14 hours ago, vn00698090 said:

what i want is to take the value 1000000~3000000 (it will show 1 result) and put it in the search

There is "value" field of sub-tables of table returned by "getResults" function for that. In your case you can do something like this: 

gg.clearResults()
gg.searchNumber("3;-12;30;1000000~3000000::33", gg.TYPE_DWORD)
gg.refineNumber("1000000~3000000", gg.TYPE_DWORD)
local result = gg.getResults(1)
local value = result[1].value
local newSearch = "3;3~8;1;2;5;" .. value .. "::33"
gg.clearResults()
gg.searchNumber(newSearch, gg.TYPE_DWORD)
gg.refineNumber("3~8", gg.TYPE_DWORD)
gg.getResults(1000) -- just load results without saving returned table
gg.editAll("1000", gg.TYPE_DWORD)
gg.clearResults()
Link to comment
Share on other sites

  • 0
On 2/15/2022 at 3:05 AM, CmP said:

There is "value" field of sub-tables of table returned by "getResults" function for that. In your case you can do something like this: 

gg.clearResults()
gg.searchNumber("3;-12;30;1000000~3000000::33", gg.TYPE_DWORD)
gg.refineNumber("1000000~3000000", gg.TYPE_DWORD)
local result = gg.getResults(1)
local value = result[1].value
local newSearch = "3;3~8;1;2;5;" .. value .. "::33"
gg.clearResults()
gg.searchNumber(newSearch, gg.TYPE_DWORD)
gg.refineNumber("3~8", gg.TYPE_DWORD)
gg.getResults(1000) -- just load results without saving returned table
gg.editAll("1000", gg.TYPE_DWORD)
gg.clearResults()

Thank you very much, i work for me, many thanks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

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