Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


how to get the AOB from an adress

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
hack-attack
How do I cheat?
Reputation: 0

Joined: 22 Mar 2015
Posts: 3

PostPosted: Mon Mar 23, 2015 12:59 pm    Post subject: how to get the AOB from an adress Reply with quote

hello guys ,
i want to work on text , not pointers not any thing else ,

i want to search for a value which is something like this
02 00 00 00 00 00 00 ?? ?? ?? ?? ??
so with AOBScan , i get it , and its 1 value ,
02 00 00 00 00 00 00 99 99 99 99

i want to print this , or setProperty on txt box ,
but the result of the AOBscan "when i use stringlist_getString "is the adress

so if i have the adress , how can i set the AOB starting from that adress on text box ,.

Code:

cody=AOBScan("02 00 00 00 00 00 00 ?? ?? ?? ?? ??")
address=stringlist_getString(cody) --thisgives me the address
setProperty(Form_TxtBoxEdit1,"Text",""..address)


here th result in text box is
Code:

0A8E9048


stringlist_getString -- gives me the adress of that AOB
stringlist_getCount -- gives me the count of result , or how many AOB found

is there any thing else that gives me what is the wildcards is ,
-
or in next step ,
i got the adress from the previous code ,
is there any function that gives me the AOB ,,
im thinking like this ,
Code:

-- this is just example i know its wrong .,
aob=AOBGet(adress,36) -- here i want to get AOB with 36 charchter length ///// here i want help , what is the right function to do that
setProperty(Form_TxtBoxEdit2,"Text",""..aob)


here , the result should be in text box
Code:
02 00 00 00 00 00 00 99 99 99 99
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Mon Mar 23, 2015 7:51 pm    Post subject: Reply with quote

If there is an actual string in memory at that address you want to receive, use:

Code:
readString(address, maxlength, widechar OPTIONAL) : Reads a string till it encounters a 0-terminator. Maxlength is just so you won't freeze for too long, set to
6000 if you don't care too much. Set WideChar to true if it is encoded using a widechar formatting


If you actually want the string "02 00 00 00 00 00 00 99 99 99 99"

You can use the following and convert each value in the returned array to a hex string.

Code:
readBytes(address,bytecount, ReturnAsTable ) : returns the bytes at the given address. If ReturnAsTable is true it will return a table instead of multiple bytes
  Reads the bytes at the given address and returns a table containing the read out bytes
Back to top
View user's profile Send private message
hack-attack
How do I cheat?
Reputation: 0

Joined: 22 Mar 2015
Posts: 3

PostPosted: Tue Mar 24, 2015 5:17 pm    Post subject: Reply with quote

Quote:

You can use the following and convert each value in the returned array to a hex string.


how can i do that , is ther any example outthere , i try to search a lot , i got nothing
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Tue Mar 24, 2015 6:12 pm    Post subject: Reply with quote

Code:
cody=AOBScan("02 00 00 00 00 00 00")
address=stringlist_getString(cody)
data = readBytes(address, 12, true)
text = ""
for i, v in pairs(data) do
  if i > 1 then
    text = text .. " "
  end
  text = text .. string.format("%02X", v)
end
setProperty(Form_TxtBoxEdit1,"Text",text)


or

Code:
text = string.format("%02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X", readBytes(address, 12))
Back to top
View user's profile Send private message
hack-attack
How do I cheat?
Reputation: 0

Joined: 22 Mar 2015
Posts: 3

PostPosted: Tue Mar 24, 2015 10:56 pm    Post subject: Reply with quote

Thx bro, i will test it Wink
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites