Jump to content

Recommended Posts

Posted (edited)

gg.clearResults()
-- gg.searchNumber('1000;20;1;1;1000;20::',gg.TYPE_DWORD,false,gg.SIGN_EQUAL,0,-1)
gg.searchNumber('350',gg.TYPE_DOUBLE)
z_Count=gg.getResultCount()
print(z_Count)
local rr=gg.getResults(z_Count)

print(rr)
-- print('First result address:',rr[z_Count].address)
-- print('First result value:',rr[z_Count].value)
-- print('First result type:',rr[z_Count].flags)

-- bb=rr[z_Count].address-0xc
rr1=rr
-- modify address
rr1[1].address=rr1[1].address-0xc
-- get values
bb=gg.getValues(rr1)

-- bb=gg.searchAddress('0x7121AC1C',0xFFFFFFFF)

print(bb)

=========================================================

Boss, can you give me an example. I'm very puzzling about xD

=========================================================

I'm stuck in this step.

I don't know how to get values in the address format.

Edited by gnukea
Posted

I'm stuck in this step.

I don't know how to get values in the address format.

It means I want to use a values as an address to jump.
But I don't know how to get the data in the format of the address, that is, how to set up flags type..
You can get a 8 - bit 16 - digit number when you get values. 0xFFFFFFFF... i'm bird......

  • Administrators
Posted

Address can be any number. 0xFF is same as 255. So you can load number from memory and set it to address.

0x is just form.

local t = {}
t[1] = {}
t[1].address = 0x18004030 -- some desired address
t[1].flags = gg.TYPE_DWORD
t = gg.getValues(t)
print(t)
-- use value as pointer
t[1].address = t[1].value
t = gg.getValues(t)
print(t)

 

Posted

Boss, I've got a new problem. It's about savefile and loadfile.
I can save and read the files and return to true., but how do I write to the files?
Then how do I handle the read content? For example, put the read in the file into an array or a table.
In addition, how do I save the result results in the storage page?

Posted

I know how savelist and loadlist work.
They have access to the saved list, but I still don't know how to put the results in the list.
And then how to get him an array or a form.

  • Administrators
Posted

Currently no friendly way for work with saved list. We have plans about that.

About I/O in lua you need read books.

Posted

Boss, the new problem, a small suggestion is that after the script is finished, there must be some hints and confirmation, can we cancel it? Or get a function. If we need to finish the window, what is return and then end? Otherwise, the default will not give the prompt. No, this should be more convenient.

  • Administrators
Posted

Dialogue on completion must be. Otherwise, the user will not understand that the script is completed.
You can write something like "all is well, press OK" through print, and then call os.exit.

_______________________________________________
added 0 minutes later

scr_1514296205.jpg

Posted (edited)

boss, It's only a small suggestion, because small scripts, such as lookup, have a progress bar, and the script is over. Then there is gotoAddress command, or it can save the result directly to list. So the confirmation dialog box is clicked every time, and it is a little tedious.

Or we can set up a return XX to choose whether the end prompt is given. xD

Edited by gnukea
  • Administrators
Posted
1 hour ago, Enyby said:

Currently no friendly way for work with saved list. We have plans about that.

  gotoAddress (long address)
  Go to the address in the memory editor. More...
copyText (string text, bool fixLocale=true)
  Copy text to the clipboard. More...

 

  • 2 weeks later...

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