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 


Lua script that look for "Advanced Options"

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
DeletedUser412833
How do I cheat?
Reputation: 1

Joined: 09 Feb 2017
Posts: 0

PostPosted: Fri Jul 01, 2016 5:46 am    Post subject: Lua script that look for "Advanced Options" Reply with quote

Hello. I need help with lua script:

1) Scan for custom byte pattern xx xx xx xx xx xx xx
2) Add first result to the codelist ("Advanced Options") with custom name "Name1"

Is that possible or we can't access to the "Advanced Options" via scripting?
Back to top
View user's profile Send private message
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Fri Jul 01, 2016 3:04 pm    Post subject: Reply with quote

Lot's of examples and guides of how to find the array of byte, the issue is with the appending it to the codelist.

One approach to access advanced options via scripting
Code:

function getAdvOpt()
   local advopt
   for i=0, getFormCount() do
      if (getForm(i) and getForm(i).name == 'AdvancedOptions') then
         advopt = getForm(i);
      end
   end
   return advopt
end


local ao = getAdvOpt();
for i=0,ao.ComponentCount-1 do
   print(ao.Component[i].name,ao.Component[i].caption)
   if (ao.Component[i].name == 'Codelist2') then
      cl = ao.Component[i] -- the listview object
   end
end

But after looking in source it saves the code information inside array, so we can't really modify it using lua, unless we could 'automate' or call the function that appends code to the listview object with our address information.

_________________
I'm rusty and getting older, help me re-learn lua.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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