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 


AOBScanRegion help

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Sanglante
Cheater
Reputation: 0

Joined: 27 Sep 2018
Posts: 43

PostPosted: Fri Nov 08, 2019 8:45 am    Post subject: AOBScanRegion help Reply with quote

Hi.
I'm starting a bit lua with an existing script i've found.

I try to make it a bit faster
When it start it scan process to find thoose with good name then scan all of them with this code to find the good one
Code:
      local res = AOBScan("88 81 ?? ?? ?? ?? 8B 82 ?? ?? ?? ?? 83 F8 00 0F 8F")
      if res ~= nil then
         for i=0, res.Count-1, 1 do
             print(string.format('Found Scan Test At 0x%s', res[i]))
             print('\n\n')
             CorrectProcess = PID
             res.destroy()
         end
      end


i want to reduce this scan with and AOBScanRegion cause i'm sure my result is in a specific range of memory with :
Code:
AOBScanRegion(0x0, 0x10000000, "88 81 ?? ?? ?? ?? 8B 82 ?? ?? ?? ?? 83 F8 00 0F 8F")

result in this :
Error:[string "controlMainForm = getMainForm()
..."]:222: attempt to call a nil value (global 'AOBScanRegion')

Any help ? is it possible to do this?
Back to top
View user's profile Send private message
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