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
FreeER
Grandmaster Cheater Supreme
Reputation: 53
Joined: 09 Aug 2013
Posts: 1091

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

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


Code:
-- see defines.lua and https://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx
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
!BEWARE!
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 Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display:  
Cheat Engine Forum Index


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites