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 


Autochange value on process startup

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

Joined: 09 Feb 2012
Posts: 1

PostPosted: Thu Feb 09, 2012 2:43 pm    Post subject: Autochange value on process startup Reply with quote

Hello everyone.
I know the address that contains the value I need to change, and I'm looking for a way to set and freeze that value on that address when the process starts up, because that value is used only once, shortly after startup, and it's no use to manually select the process and manually enter the needed value. I know there is an "auto-attach to process" option, but beyond that I'm lost Smile
Any help would be greatly appreciated.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 474

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

PostPosted: Fri Feb 10, 2012 4:52 am    Post subject: Reply with quote

Add the address you wish to freeze to the cheat table (make it the first one in the list, else update the following script)

Then execute this lua script:
Code:

strings_add(getAutoAttachList(),"Yourprocessname.exe")

function onOpenProcess(processid)
local al=getAddressList()
      reinitializeSymbolhandler()
      mr=addresslist_getMemoryRecord(al,0) --get the first entry in the cheat table
      memoryrecord_freeze(mr)
end;


It will then check every second if the given process exists and if it finds it attach to the process and freeze the first entry in the table

_________________
Tools give you results. Knowledge gives you control.

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 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