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 

Cheat Engine Forum Index
PostGo back to topic
Grandmaster Cheater Supreme
Reputation: 42
Joined: 09 Aug 2013
Posts: 1089

PostPosted: Wed Jan 10, 2018 4:51 pm    Post subject:

So it can be simple swap both values so that 1 becomes 2 and 2 becomes 1
That's a simple change

-- see defines.lua and
local swapValuesHotKeyKeys = {VK_F12}
swapValuesHotKey = createHotkey(function()
  local getmr = getAddressList().getMemoryRecordByDescription
  local first = getmr('first') -- gets memory record with name/description 'first'
  local second = getmr('second') -- ^ but 'second'
  first.Value, second.Value = second.Value, first.Value -- swap values
end, swapValuesHotKeyKeys)
Back to top
View user's profile Send private message
Post reviews:   Approve 1
Author Review
Review: Approve
Post reference:
ReviewPosted: Wed Jan 10, 2018 7:37 pm

help a lot
Back to top
View user's profile Send private message
Cheat Engine Forum Index

Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites