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 


set one value of one address using the value of another?

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

Joined: 04 Jul 2017
Posts: 4

PostPosted: Tue Mar 06, 2018 2:28 am    Post subject: set one value of one address using the value of another? Reply with quote

Is it possible to set a a keyboard shortcut to set the value of one variable using the value of another variable?

IE:
find int
add int to list
right click and keyboard shortcut
add keyboard shortcut
set value to [another memory address]

examples of use: set bullets to current max clip size. Set life to current max life.
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Tue Mar 06, 2018 9:43 am    Post subject: Reply with quote

I don't believe you can do so with CE's gui, you can however use a lua script to create a more generic hotkey that runs lua code, which can then read and write arbitrary memory in a few different ways. eg.


Code:
local al = AddressList or getAddressList()
-- simple way
local mr1 = al.getMemoryRecordByDescription("MemRec to Read From")
local mr2 = al.getMemoryRecordByDescription("MemRec to Write To")
if not mr1 or not mr2 then error("Memrecs do not exist!!!") end
hk = createHotkey(function(hotkey)
  mr2.Value = mr1.Value
end, VK_F2) -- https://msdn.microsoft.com/en-us/library/windows/desktop/dd375731%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396

_________________
https://github.com/FreeER/ has a few CE related repos
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 Source 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