Jump to content
  • 0

How to refine search results in scripts, am i doing it right?


Roverturbo

Question

Posted

gg.setVisible(false)
    searchFloat('1')
    searchFloat('2')
    getResults(10)
    editAll(5, gg.TYPE_FLOAT)
    gg.toast('Done!')
    main()
end
 

in the second float search does it refine the first search or it doing another search?

2 answers to this question

Recommended Posts

  • Administrators
Posted

Read API help. You doing search wrong.

Need use gg.searchNumber.

And you too often forget "gg." before gg cals.

https://gameguardian.net/help/

_______________________________________________
added 2 minutes later
3 minutes ago, Roverturbo said:

 

in the second float search does it refine the first search or it doing another search?

Any call of gg.searchNumber refine results if result list not empty. Does not matter first it on the script or not.

It is mean - if you start script with not empty result set, and do not clear it, then even first call of the gg.searchNumber will make refine search.

Posted
4 minutes ago, Roverturbo said:

in the second float search does it refine the first search or it doing another search?

It depends on how many results were found by the first search. If 0, then it will be new search. If 1 or more, then it will be refine search. Refine search by it's definition is possible only when something was found by previous search.

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.