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