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 


Is there way to define AOBScan Scan range?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
longxx
How do I cheat?
Reputation: 0

Joined: 24 Oct 2010
Posts: 7

PostPosted: Wed Jul 06, 2011 3:51 pm    Post subject: Is there way to define AOBScan Scan range? Reply with quote

Hi all,
I'm trying to write a Lua script to automate a series of pattern scans of Read/executable only memory regions

Some draft looks like this (thanks Dark_byte for the hint)
Code:

results=AOBScan("30", "+X-W")
totalfound=strings_getCount(results)
first=strings_getString(results,0)
second=strings_getString(results,1)

showMessage( string.format(
"Total result found: %s\nFirst result: %s \nSecond result: %s",totalfound, first,second ) )


the long term goal is make this into some sort of table to search/display results of different searches

My question is.... is there way to define the Scan range for AOBScan? Like in regular CE windows you can define the Start/Stop point of a memory scan. I do not see option this in the function prototype.

thanks.

thanks
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Wed Jul 06, 2011 4:07 pm    Post subject: Reply with quote

Only using the protection flags to include only read only executable memory.

For more control you have to use the memscan/foundlist class combination. There you can do a full cheat engine scan, including next scans and random access to the foundlist, even if it has a million found results


Of course, keep in mind that the start/stop region WILL be different for other people, unless you specify modulenames explicitly (so don't blindly give as address 20000000 to 30000000 because it's usually there for you)

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting 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